Changes the zone of a PolarDB-X 1.0 instance.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ChangeInstanceAzone | The operation that you want to perform. Set the value to ChangeInstanceAzone. |
| DrdsInstanceId | String | Yes | drdsjiii1b49**** | The ID of the instance. |
| OriginAzoneId | String | Yes | cn-hangzhou-B | The original zone of the instance. |
| TargetAzoneId | String | Yes | cn-hangzhou-A | The new zone of the instance. |
| DrdsRegionId | String | Yes | cn-hangzhou | The region ID of the instance. |
| ChangeVSwitch | Boolean | No | true | Specifies whether to replace the original vSwitch with a new one. Valid values:
|
| NewVSwitch | String | No | vsw-wz9ckkba51zrh******** | The ID of the new vSwitch. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| Success | Boolean | true | Indicates whether the request was successful. |
| RequestId | String | 2F7F8080-9132-4279-85D0-B7E5C4305162 | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ChangeInstanceAzone
&DrdsInstanceId=drdsjiii1b49****
&OriginAzoneId=cn-hangzhou-B
&TargetAzoneId=cn-hangzhou-A
&DrdsRegionId=cn-hangzhou
&ChangeVSwitch=true
&NewVSwitch=vsw-wz9ckkba51zrh********
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ChangeInstanceAzoneResponse>
<Success>true</Success>
<RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>
</ChangeInstanceAzoneResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Success" : true,
"RequestId" : "2F7F8080-9132-4279-85D0-B7E5C4305162"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | An internal error has occurred. |
For a list of error codes, see Service error codes.