All Products
Document Center


Last Updated: May 11, 2018

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

  1. try{
  2. String clusterId = "cls-6vilcufsfd31i010";
  3. String groupName = "group1";
  4. String id = "ins-xxxxxxxx";
  5. RecreateClusterInstanceResponse response = client.recreateClusterInstance(clusterId,groupName,id);
  6. //The request is accepted.
  7. }catch(ClientException e){
  8. e.printStackTrace();
  9. // Failed
  10. }

Note: This is an asynchronous interface, and the setting does not take effect immediately.