ClustersApi
ClustersApi
Method
HTTP request
Description
clustersDelete
Example
// Import classes:
import com.ionoscloud.dbaasmongo.ApiClient;
import com.ionoscloud.dbaasmongo.ApiException;
import com.ionoscloud.dbaasmongo.Configuration;
import com.ionoscloud.dbaasmongo.auth.*;
import com.ionoscloud.dbaasmongo.model.*;
import com.ionoscloud.dbaasmongo.api.ClustersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuthentication.setUsername("YOUR USERNAME");
basicAuthentication.setPassword("YOUR PASSWORD");
ClustersApi apiInstance = new ClustersApi(defaultClient);
String clusterId = "clusterId_example"; // String | The unique ID of the cluster.
try {
ClusterResponse result = apiInstance.clustersDelete(clusterId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClustersApi#clustersDelete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersFindById
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersGet
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersPatch
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersPost
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
Last updated
