通过 GET 方法调用 /regions 查询地域列表。

请求参数

返回参数

返回是地域列表。

名称 参数类型 描述
Regions List 所有地域的列表。

错误码

错误代码 描述 Http状态码 语义
InternalError Server error 500 服务器端出现未知异常。

示例

请求示例

GET http://ros.aliyuncs.com/regions HTTP/1.1
x-acs-signature-method: HMAC-SHA1
Authorization: acs ACSTQDkNtSMrZtwL:8xKxVMy4xi2zgXUNLERRiZbgapg=
Date: Fri, 11 Sep 2015 05:30:11 GMT
x-acs-signature-version: 1.0
x-sdk-client: Java/2.0.0
Accept: application/octet-stream
x-acs-version: 2015-09-01
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_27
Host: ros.aliyuncs.com
Connection: keep-alive



返回示例

HTTP/1.1 200 OK
Date: Fri, 11 Sep 2015 05:30:12 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 1694
Connection: close
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: X-Requested-With, X-Sequence, _aop_secret, _aop_signature
Access-Control-Max-Age: 172800
X-Acs-Request-Id: A21A4B12-CCD7-42F0-9A62-DE8347D88385
Server: Jetty(7.2.2.v20101205)

{
    "Regions":[
        {
            "LocalName":"华南 1",
            "RegionId":"cn-shenzhen"
        },
        {
            "LocalName":"亚太东南 1 (新加坡)",
            "RegionId":"ap-southeast-1"
        },
        {
            "LocalName":"华北 1",
            "RegionId":"cn-qingdao"
        },
        {
            "LocalName":"华北 2",
            "RegionId":"cn-beijing"
        },
        {
            "LocalName":"华东 2",
            "RegionId":"cn-shanghai"
        },
        {
            "LocalName":"美国东部 1 (弗吉尼亚)",
            "RegionId":"us-east-1"
        },
        {
            "LocalName":"香港",
            "RegionId":"cn-hongkong"
        },
        {
            "LocalName":"中东东部 1 (迪拜)",
            "RegionId":"me-east-1"
        },
        {
            "LocalName":"亚太东南 2 (悉尼)",
            "RegionId":"ap-southeast-2"
        },
        {
            "LocalName":"华东 1",
            "RegionId":"cn-hangzhou"
        },
        {
            "LocalName":"欧洲中部 1 (法兰克福)",
            "RegionId":"eu-central-1"
        },
        {
            "LocalName":"亚太东北 1 (东京)",
            "RegionId":"ap-northeast-1"
        },
        {
            "LocalName":"美国西部 1 (硅谷)",
            "RegionId":"us-west-1"
        }
    ]
}