You can call this operation to modify the name of a data center.

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 ModifyDataCenter

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

ClusterId String Yes cds-bp1b136j****5d57

The ID of the cluster.

DataCenterId String Yes cn-hangzhou-g

The ID of the data center.

DataCenterName String No Cassandra_test

The new name of the data center.

Response parameters

Parameter Type Example Description
RequestId String FAE9E7A4-0E75-46F7-9710-D2E0B41AF9F5

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifyDataCenter
&ClusterId=cds-bp1b136j****5d57
&DataCenterId=cn-hangzhou-g
&<Common request parameters>

Sample success responses

XML format

<ModifyDataCenterResponse>
  <RequestId>FAE9E7A4-0E75-46F7-9710-D2E0B41AF9F5</RequestId>
</ModifyDataCenterResponse>

JSON format

{
  "RequestId": "FAE9E7A4-0E75-46F7-9710-D2E0B41AF9F5"
}

Error codes

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