ClustersApi
ClustersApi
Method
HTTP request
Description
clusters_delete
Example
from __future__ import print_function
import time
import ionoscloud_dbaas_mongo
from ionoscloud_dbaas_mongo.rest import ApiException
# Defining the host is optional and defaults to https://api.ionos.com/databases/mongodb
configuration = ionoscloud_dbaas_mongo.Configuration(
host = 'https://api.ionos.com/databases/mongodb',
)
# Example of configuring HTTP Basic Authorization
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
with ionoscloud_dbaas_mongo.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud_dbaas_mongo.ClustersApi(api_client)
cluster_id = 'cluster_id_example' # str | The unique ID of the cluster.
try:
# Delete a Cluster
api_response = api_instance.clusters_delete(cluster_id)
print(api_response)
except ApiException as e:
print('Exception when calling ClustersApi.clusters_delete: %s\n' % e)Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
clusters_find_by_id
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
clusters_get
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
clusters_patch
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
clusters_post
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Last updated
