DataCenterApi
All URIs are relative to https://api.ionos.com/cloudapi/v5
datacentersDelete
object datacentersDelete(datacenterId, opts)
Delete a Data Center
Will remove all objects within the datacenter and remove the datacenter object itself, too. This is a highly destructive method which should be used with caution
Examples
Parameters
Return type
object
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: Not defined
Accept: application/json
datacentersFindById
datacentersFindById(datacenterId, opts)
Retrieve a Data Center
You can retrieve a data center by using the resource's ID. This value can be found in the response body when a datacenter is created or when you GET a list of datacenters.
Examples
Parameters
Return type
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: Not defined
Accept: application/json
datacentersGet
datacentersGet(opts)
List Data Centers under your account
You can retrieve a complete list of data centers provisioned under your account
Examples
Parameters
Return type
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: Not defined
Accept: application/json
datacentersPatch
datacentersPatch(datacenterId, datacenter, opts)
Partially modify a Data Center
You can use update datacenter to re-name the datacenter or update its description
Examples
Parameters
Return type
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: application/json
Accept: application/json
datacentersPost
datacentersPost(datacenter, opts)
Create a Data Center
Virtual data centers are the foundation of the platform. They act as logical containers for all other objects you will be creating, e.g. servers. You can provision as many data centers as you want. Datacenters have their own private network and are logically segmented from each other to create isolation. You can use this POST method to create a simple datacenter or to create a datacenter with multiple objects under it such as servers and storage volumes.
Examples
Parameters
Return type
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: application/json
Accept: application/json
datacentersPut
datacentersPut(datacenterId, datacenter, opts)
Modify a Data Center
You can use update datacenter to re-name the datacenter or update its description
Examples
Parameters
Return type
Authorization
Basic Authentication, Token Authentication
HTTP request headers
Content-Type: application/json
Accept: application/json
Last updated