Queries whether the zone can be switched by calling the DescribeInstanceSwitchAzone operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:DescribeInstanceSwitchAzone |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID. |
drdsxxxxxxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| RequestId |
string |
The request ID. |
DSSDF-SEWE-23ERW |
| Result |
object |
The query result list. |
|
| OriginAzoneId |
string |
The source zone ID. |
cn-hangzhou-a |
| SwitchAble |
boolean |
Indicates whether the zone can be switched. |
true |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| TargetAzones |
object |
||
| TargetAzone |
array |
Target azones. |
|
|
string |
cn-hangzhou-a,cn-hangzhou-b |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "DSSDF-SEWE-23ERW",
"Result": {
"OriginAzoneId": "cn-hangzhou-a",
"SwitchAble": true,
"RegionId": "cn-hangzhou",
"TargetAzones": {
"TargetAzone": [
"cn-hangzhou-a,cn-hangzhou-b"
]
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.