Queries available regions.

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.

Response parameters

Parameter Type Example Description
Regions Array of Region

The region.

Region
RegionId String cn-hangzhou

The region ID.

RequestId String 815240e2-aa37-4c26-9cca-05d4df3e8fe6

The ID of the request.

Examples

Sample requests

https://kms.cn-hangzhou.aliyuncs.com/?Action=DescribeRegions
&<Common request parameters>

Sample success responses

XML format

<KMS>
	  <Regions>
		    <Region>
			      <RegionId>cn-beijing</RegionId>
		    </Region>
		    <Region>
			      <RegionId>cn-hangzhou</RegionId>
		    </Region>
	  </Regions>
	  <RequestId>815240e2-aa37-4c26-9cca-05d4df3e8fe6</RequestId>
</KMS>

JSON format

{
        "Regions": {
                "Region": [
                        {
                                "RegionId": "cn-beijing"
                        },
                        {
                                "RegionId": "cn-hangzhou"
                        }
                ]
        },
        "RequestId": "815240e2-aa37-4c26-9cca-05d4df3e8fe6"
}

Error codes

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