Parameter description
All classes of parameters are converted to dictionary objects containing the attribute information.
Parameter | Type | Description |
---|---|---|
cluster | str, CreateResponse | Cluster ID |
Response description
The change_cluster_desired_vm_count method returns an ActionResponse
object. ActionResponse
provides only two attributes: request ID and status code.
Example
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)