Queries the Alibaba Cloud regions where Simple Application Server is available.

Description

The query results include all the Alibaba Cloud regions where Simple Application Server is available on the International site (alibabacloud.com) and the China site (aliyun.com).

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 ListRegions

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

Response parameters

Parameter Type Example Description
Regions Array of Region

Details about the regions.

LocalName String China (Hangzhou)

The name of the region.

RegionEndpoint String swas.cn-hangzhou.aliyuncs.com

The endpoint of the region.

RegionId String cn-hangzhou

The ID of the region.

RequestId String 20758A-585D-4A41-A9B2-28DA8F4F534F

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<ListRegionsResponse>
      <RequestId>20758A-585D-4A41-A9B2-28DA8F4F534F</RequestId>
      <Regions>
            <RegionId>cn-qingdao</RegionId>
            <RegionEndpoint>swas.cn-qingdao.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Qingdao)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-beijing</RegionId>
            <RegionEndpoint>swas.cn-beijing.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Beijing)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-zhangjiakou</RegionId>
            <RegionEndpoint>swas.cn-zhangjiakou.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Zhangjiakou)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-huhehaote</RegionId>
            <RegionEndpoint>swas.cn-huhehaote.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Hohhot)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-hangzhou</RegionId>
            <RegionEndpoint>swas.cn-hangzhou.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Hangzhou)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-shanghai</RegionId>
            <RegionEndpoint>swas.cn-shanghai.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Shanghai)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-shenzhen</RegionId>
            <RegionEndpoint>swas.cn-shenzhen.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Shenzhen)</LocalName>
      </Regions>
      <Regions>
            <RegionId>cn-hongkong</RegionId>
            <RegionEndpoint>swas.cn-hongkong.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Hong Kong)</LocalName>
      </Regions>
      <Regions>
            <RegionId>ap-southeast-1</RegionId>
            <RegionEndpoint>swas.ap-southeast-1.aliyuncs.com</RegionEndpoint>
            <LocalName>Singapore (Singapore)</LocalName>
      </Regions>
</ListRegionsResponse>

JSON format

{
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F",
  "Regions": [
    {
      "RegionId": "cn-qingdao",
      "RegionEndpoint": "swas.cn-qingdao.aliyuncs.com",
      "LocalName": "China (Qingdao)"
    },
    {
      "RegionId": "cn-beijing",
      "RegionEndpoint": "swas.cn-beijing.aliyuncs.com",
      "LocalName": "China (Beijing)"
    },
    {
      "RegionId": "cn-zhangjiakou",
      "RegionEndpoint": "swas.cn-zhangjiakou.aliyuncs.com",
      "LocalName": "China (Zhangjiakou)"
    },
    {
      "RegionId": "cn-huhehaote",
      "RegionEndpoint": "swas.cn-huhehaote.aliyuncs.com",
      "LocalName": "China (Hohhot)"
    },
    {
      "RegionId": "cn-hangzhou",
      "RegionEndpoint": "swas.cn-hangzhou.aliyuncs.com",
      "LocalName": "China (Hangzhou)"
    },
    {
      "RegionId": "cn-shanghai",
      "RegionEndpoint": "swas.cn-shanghai.aliyuncs.com",
      "LocalName": "China (Shanghai)"
    },
    {
      "RegionId": "cn-shenzhen",
      "RegionEndpoint": "swas.cn-shenzhen.aliyuncs.com",
      "LocalName": "China (Shenzhen)"
    },
    {
      "RegionId": "cn-hongkong",
      "RegionEndpoint": "swas.cn-hongkong.aliyuncs.com",
      "LocalName": "China (Hong Kong)"
    },
    {
      "RegionId": "ap-southeast-1",
      "RegionEndpoint": "swas.ap-southeast-1.aliyuncs.com",
      "LocalName": "Singapore (Singapore)"
    }
  ]
}

Error codes

HTTP status code Error code Error message Description
500 InternalError An error occurred while processing your request. The error message returned because an internal error has occurred. Try again later. If the error persists, submit a ticket.

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