You can call this operation to modify the instance type.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyInstanceType

The operation that you want to perform. Set the value to ModifyInstanceType.

ClusterId String Yes cds-uf6ig2gf****7pw7

The ID of the cluster.

DataCenterId String Yes cn-shanghai-e

The ID of the data center in the cluster.

InstanceType String Yes cassandra.g.xlarge

The instance type. Examples of valid values:

  • cassandra.c.large: 2 cores, 4 GB
  • cassandra.c.xlarge: 4 cores, 8 GB
  • cassandra.c.2xlarge: 8 cores, 16 GB

Response parameters

Parameter Type Example Description
RequestId String BC262FE3-91ED-4FE7-BD75-190B62D8BABC

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyInstanceType
&ClusterId=cds-uf6ig2gf****7pw7
&DataCenterId=cn-shanghai-e
&InstanceType=cassandra.g.xlarge
&<Common request parameters>

Sample success responses

XML format

<ModifyInstanceTypeResponse>
  <RequestId>BC262FE3-91ED-4FE7-BD75-190B62D8BABC</RequestId>
</ModifyInstanceTypeResponse>

JSON format

{
    "RequestId": "BC262FE3-91ED-4FE7-BD75-190B62D8BABC"
}

Error codes

For a list of error codes, visit the API Error Center.