描述
修改集群期望实例数(change_cluster_desired_vm_count
)。
参数说明
所有类型的参数将被转换为包含属性信息的字典对象。
参数 | 类型 | 描述 |
---|---|---|
cluster | str, CreateResponse | 集群的标示符 |
返回值说明
change_cluster_desired_vm_count方法将返回一个 ActionResponse
对象, ActionResponse
仅提供了request ID和状态码两个属性。
示例
try:
# Init a Client object.
client = ...
# Refer to ClusterDescription.
cluster_desc = ClusterDescription(...)
cluster = client.create_cluster(cluster_desc)
# Print out the cluster id.
print (cluster.Id)
client.change_cluster_desired_vm_count(cluster.Id, group1=3, group2=4)
except ClientError, e:
print (e)