An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API.
The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
Install the following dependencies:
npm i --save @ionos-cloud/sdk-nodejs
Import the SDK using:
const sdk = require('@ionos-cloud/sdk-nodejs')
Or, if the import is done from an ES module, use:
import * as sdk from '@ionos-cloud/sdk-nodejs';
Usage example:
const config = new sdk.Configuration({username: 'YOUR_USERNAME', password: 'YOUR_PASSWORD'});
const dcApi = new sdk.DataCentersApi(config);
dcApi.datacentersGet().then((response) => console.log(response));