DataCentersApi
DataCentersApi
Method
HTTP request
Description
datacenters_delete
Example
from __future__ import print_function
import time
import ionoscloud
from ionoscloud.rest import ApiException
# Defining the host is optional and defaults to https://api.ionos.com/cloudapi/v6
configuration = ionoscloud.Configuration(
host = 'https://api.ionos.com/cloudapi/v6',
)
# Example of configuring HTTP Basic Authorization
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
with ionoscloud.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud.DataCentersApi(api_client)
datacenter_id = 'datacenter_id_example' # str | The unique ID of the data center.
try:
# Delete data centers
api_instance.datacenters_delete(datacenter_id)
except ApiException as e:
print('Exception when calling DataCentersApi.datacenters_delete: %s\n' % e)Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_find_by_id
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_get
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_patch
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_post
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
datacenters_put
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Last updated
Was this helpful?