All Products
Search
Document Center

Batch Compute:recreate_cluster_instance

Last Updated:May 14, 2018

Parameter description

Attribute Type Description
cluster_id str Cluster ID
group_name str Instance group name
instance_id str Instance ID

Response description

The recreate_cluster_instance method returns an ActionResponse object. ActionResponse provides only two attributes: request ID and status code.

Example

  1. try:
  2. # Get a Client object.
  3. client = Client(...
  4. ...
  5. cluster_id = 'cls-xxxx'
  6. group_name = 'group1'
  7. instance_id = 'i-xxxx'
  8. client.recreate_cluster_instance(cluster_id, group_name, instance_id)
  9. except ClientError, e:
  10. print(e)