constionoscloud=require('@ionos-cloud/sdk-nodejs-cert-manager');// setup authorizationconstconfig=newionoscloud.Configuration({ username:'YOUR_USERNAME', password:'YOUR_PASSWORD', apiKey:'YOUR_API_KEY'});constapi_instance=newionoscloud.InformationApi(config);// Get the Service API Informationapi_instance.getInfo().then((response) =>console.log(response.data)).catch((error) =>console.log(error.response.data));
Displays the Open API documentation in the JSON format.
Examples
constionoscloud=require('@ionos-cloud/sdk-nodejs-cert-manager');// setup authorizationconstconfig=newionoscloud.Configuration({ username:'YOUR_USERNAME', password:'YOUR_PASSWORD', apiKey:'YOUR_API_KEY'});constapi_instance=newionoscloud.InformationApi(config);// Get the Open API Documentation JSONapi_instance.getJsonOpenApiSpec().then((response) =>console.log(response.data)).catch((error) =>console.log(error.response.data));
Parameters
This endpoint does not need any parameter.
Return type
any
Authorization
basicAuth, tokenAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
getYamlOpenApiSpec
any getYamlOpenApiSpec
Get the Open API Documentation YAML
Displays the Open API documentation in the YAML format.
Examples
constionoscloud=require('@ionos-cloud/sdk-nodejs-cert-manager');// setup authorizationconstconfig=newionoscloud.Configuration({ username:'YOUR_USERNAME', password:'YOUR_PASSWORD', apiKey:'YOUR_API_KEY'});constapi_instance=newionoscloud.InformationApi(config);// Get the Open API Documentation YAMLapi_instance.getYamlOpenApiSpec().then((response) =>console.log(response.data)).catch((error) =>console.log(error.response.data));