Queries regions.


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 of the response. Valid values:

  • zh-CN (default): Chinese
  • en-US: English
  • ja: Japanese

Response parameters

Parameter Type Example Description
RequestId String 2F026E79-30AD-47B6-9E7D-D1D4BA77F1F1

The ID of the request.

Regions Array of Region

A list of regions.

LocalName String China (Shanghai)

The name of the region.

RegionEndpoint String smartag.cn-shanghai.aliyuncs.com

The endpoint of the Smart Access Gateway (SAG) service in the current region.

RegionId String cn-shanghai

The ID of the region.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8" ?> 
		<LocalName>China (Shanghai)</LocalName>

JSON format

HTTP/1.1 200 OK

  "RequestId" : "2F026E79-30AD-47B6-9E7D-D1D4BA77F1F1",
  "Regions" : {
    "Region" : [ {
      "RegionId" : "cn-shanghai",
      "RegionEndpoint" : "smartag.cn-shanghai.aliyuncs.com",
      "LocalName" : "China (Shanghai)"
    } ]

Error codes

HttpCode Error code Error message Description
501 InnerServiceFailed Call inner service failed. The error message returned because an internal error occurred.
403 Forbidden User not authorized to operate on the specified resource. The error message returned because you do not have the permissions to manage the specified resource.

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