Check whether zone switching is enabled

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 DescribeInstanceSwitchAzone

The operation that you want to perform. Valid values: DescribeInstanceSwitchAzone

DrdsInstanceId String Yes drdshbga7******

The ID of the DRDS instance.

AccessKeyId String No test

AccessKey ID.

Response parameters

Prameter Type Sample response Description
RequestId String DSSDF-SEWE******

The ID of the request.

Result

The result of the operation.

OriginAzoneId String cn-hangzhou-a

The ID of the source azoneId.

RegionId Boolean cn-hangzhou

regionId.

SwitchAble Boolean true

Indicates whether the job can be switched.

TargetAzones cn-hangzhou-a and cn-hangzhou-b

Target azones.

TargetAzone

Target azones.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample request


http(s)://[Endpoint]/? Action=DescribeInstanceSwitchAzone
& <Common request parameters>

Sample success responses

XML format

<DescribeInstanceSwitchAzoneResponse>
	  <RequestId>DSSDF-SEWE******</RequestId>
	  <Success>True</Success>
      <Result>
         <OriginAzoneId>cn-hangzhou-a</OriginAzoneId>
         <RegionId>cn-hangzhou</RegionId>
         <SwitchAble>true</SwitchAble>
      </Result>
      <TargetAzones>cn-hangzhou-a,cn-hangzhou-b</TargetAzones>
</DescribeInstanceSwitchAzoneResponse>

Error codes

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