Queries regions where you can create instances.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListInstanceRegion |
The operation that you want to perform. Set the value to ListInstanceRegion. |
RegionId | String | Yes | cn-shanghai |
The ID of the region. |
Lang | String | No | zh-CN |
The language in which the region names are returned. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The return value. |
RequestId | String | 11F182E1-0F84-4F5B-8D3B-61E991482727 |
The ID of the request. |
Regions | Array | N/A |
The list of regions. |
RegionId | String | cn-shenzhen |
The ID of the region. |
LocalName | String | China (Shenzhen) |
The name of the region. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListInstanceRegion
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>11F182E1-0F84-4F5B-8D3B-61E991482727</RequestId>
<Regions>
<RegionId>cn-shenzhen</RegionId>
<LocalName>China (Shenzhen)</LocalName>
</Regions>
<Code>success</Code>
JSON
format
{
"IsSuccess":true,
"RequestId":"11F182E1-0F84-4F5B-8D3B-61E991482727",
"Regions":[
{
"RegionId":"cn-shenzhen",
"LocalName": "China (Shenzhen)"
}
],
"Code":"success"
}
Error codes
For a list of error codes, visit the API Error Center.