Queries regions where you can create instances.

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 ListInstanceRegion

The operation that you want to perform. Set the value to ListInstanceRegion.

RegionId String Yes cn-shanghai

The ID of the region where the instance can reside.

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 code returned for the request.

RequestId String 11F182E1-0F84-4F5B-8D3B-61E991482727

The ID of the request.

Regions Array

A list of regions that where you can create an instance.

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

JSON format

{
    "IsSuccess":true,
    "RequestId":"11F182E1-0F84-4F5B-8D3B-61E991482727",
    "Regions":[
        {
            "RegionId":"cn-shenzhen",
            "LocalName": "China (Shenzhen)"
        }
    ],
    "Code":"success"
}

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>

Error codes

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