Method description
Deletes a cluster instance.
Parameter description
Parameter | Type | Description |
---|---|---|
clusterId | String | Cluster ID |
groupName | String | Name of an instance group |
id | String | Cluster instance ID |
Response description
If creation succeeds, a DeleteClusterInstanceResponse instance is returned.
If creation fails, a ClientException is thrown.
Sample code
try{
String clusterId = "cls-6vilcufsfd31i010";
String groupName = "group1";
String id = "ins-xxxxxxxx";
DeleteClusterInstanceResponse response = client.deleteClusterInstance(clusterId,groupName,id);
//The deletion request is accepted.
}catch(ClientException e){
e.printStackTrace();
//Deletion failed
}
Note: This is an asynchronous API. After deletion, DesiredVMCount of the related group decreases by 1.