@ionos-cloud/sdk-nodejs
v6.1.4
Published
NodeJS SDK for the Ionos Cloud API
Downloads
43
Readme
Node JS API client for ionoscloud
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.
Overview
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.
- API version: 6.0
- Package version: 6.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Installation
Install the following dependencies:
npm i --save @ionos-cloud/sdk-nodejs
Usage
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));