You can call this operation to query the available regions and zones of AnalyticDB for MySQL.

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 DescribeRegions

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

AcceptLanguage String No zh-CN

The language used for the value to return. Default value: zh-CN. Valid values:

  • zh-CN: Chinese.
  • en-US: English.
  • ja: Japanese.

Default value: zh-CN.

Response parameters

Parameter Type Example Description
Regions Array of Region

The list of regions.

Region
LocalName String China (Hangzhou)

The region name.

RegionEndpoint String adb.aliyuncs.com

The endpoint of the region.

RegionId String cn-hangzhou

The region ID of the cluster.

Zones Array of Zone

The list of zones.

Zone
LocalName String Hangzhou Zone A

The name of the zone.

VpcEnabled Boolean true

Indicates whether virtual private clouds (VPCs) are supported.

ZoneId String cn-hangzhou-h

The IDs of zones.

RequestId String 1AD222E9-E606-4A42-BF6D-8A4442913CEF

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>
<Regions>
    <Region>
        <RegionId>cn-hangzhou</RegionId>
        <RegionEndpoint>adb.aliyuncs.com</RegionEndpoint>
        <LocalName>China (Hangzhou)</LocalName>
    </Region>
    <Region>
        <Zones>
            <Zone>
                <VpcEnabled>true</VpcEnabled>
                <ZoneId>cn-hangzhou-h</ZoneId>
                <ZoneName>Hangzhou Zone A</ZoneName>
            </Zone>
        </Zones>
    </Region>
</Regions>

JSON format

{
    "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
    "Regions": {
        "Region": [
            {
                "RegionId": "cn-hangzhou",
                "RegionEndpoint": "adb.aliyuncs.com",
                "LocalName": "China (Hangzhou)"
            },
            {
                "Zones": {
                    "Zone": {
                        "VpcEnabled": true,
                        "ZoneId": "cn-hangzhou-h",
                        "LocalName": "Hangzhou Zone A"
                    }
                }
            }
        ]
    }
}

Error codes

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