NodeJS SDK for the Ionos Cloud API
npm install @ionos-cloud/sdk-nodejs[![[ CI ] CloudApi V6 / NodeJS](https://github.com/ionos-cloud/sdk-resources/actions/workflows/ci-cloudapi-v6-node.yml/badge.svg)](https://github.com/ionos-cloud/sdk-resources/actions/workflows/ci-cloudapi-v6-node.yml)








!Alt text
shell
npm i --save @ionos-cloud/sdk-nodejs
`
Usage
Import the SDK using:
`javascript
const sdk = require('@ionos-cloud/sdk-nodejs')
`
Or, if the import is done from an ES module, use:
`javascript
import * as sdk from '@ionos-cloud/sdk-nodejs';
`
Usage example:
`javascript
const config = new sdk.Configuration({username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD'});
const dcApi = new sdk.DataCentersApi(config);
dcApi.datacentersGet().then((response) => console.log(response));
``