Queries regions in which 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 region ID of the instance.

Lang String No zh-CN

The language in which you want the system to return the region names.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the operation is successful.

Regions Array of Regions

The list of regions.

LocalName String China (Shenzhen)

The name of the region.

RegionId String cn-shenzhen

The region ID of the instance.

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

The ID of the request.

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.