Changes the primary zone of a PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyDBClusterPrimaryZone |
The operation that you want to perform. Set the value to ModifyDBClusterPrimaryZone. |
DBClusterId | String | Yes | pc-************** |
The ID of the cluster. |
ZoneId | String | Yes | cn-hangzhou-g |
The ID of the new primary zone. Note You can call the DescribeRegions operation to query available zones.
|
VSwitchId | String | No | vsw-************** |
The ID of the VSwitch. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | ED12C6FF-3261-4571-AB57-3570F6****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=ModifyDBClusterPrimaryZone
&DBClusterId=pc-**************
&ZoneId=cn-hangzhou-g
&<Common request parameters>
Sample success responses
XML
format
<ModifyDBClusterPrimaryZoneResponse>
<RequestId>ED12C6FF-3261-4571-AB57-3570F6******</RequestId>
</ModifyDBClusterPrimaryZoneResponse>
JSON
format
{
"RequestId": "ED12C6FF-3261-4571-AB57-3570F6******"
}
Error codes
For a list of error codes, visit the API Error Center.