Method description
Recreates a cluster instance after deleting it.
Parameter description
Parameter | Type | Description |
---|---|---|
clusterId | String | Cluster ID |
groupName | String | Name of an instance group |
id | String | Cluster instance ID |
Response description
If the call succeeds, a RecreateClusterInstanceResponse instance is returned.
If a failure occurs, a ClientException is thrown.
Sample code
try{
String clusterId = "cls-6vilcufsfd31i010";
String groupName = "group1";
String id = "ins-xxxxxxxx";
RecreateClusterInstanceResponse response = client.recreateClusterInstance(clusterId,groupName,id);
//The request is accepted.
}catch(ClientException e){
e.printStackTrace();
// Failed
}
Note: This is an asynchronous interface, and the setting does not take effect immediately.