描述
重建集群实例(recreate_cluster_instance
)。
参数说明
属性 | 类型 | 描述 |
---|---|---|
cluster_id | str | 集群标识符 |
group_name | str | 实例组名称 |
instance_id | str | 实例名称 |
返回值说明
recreate_cluster_instance方法将返回一个 ActionResponse
对象, ActionResponse
仅提供了request ID和状态码两个属性。
示例
try:
# Get a Client object.
client = Client(...
...
cluster_id = 'cls-xxxx'
group_name = 'group1'
instance_id = 'i-xxxx'
client.recreate_cluster_instance(cluster_id, group_name, instance_id)
except ClientError, e:
print(e)