调用DescribeRegions接口查询可用地域。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeRegions

系统规定参数。取值:DescribeRegions

RegionId String cn-hangzhou

地域ID。

返回数据

名称 类型 示例值 描述
RequestId String 611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F

请求ID。

Regions Array of Region

可用地域的集合。

Region
LocalName String 华东1(杭州)

地域名称。

RegionEndpoint String privatelink.cn-hangzhou.aliyuncs.com

地域服务的终端节点。

RegionId String cn-hangzhou

地域ID。

示例

请求示例

https://[Endpoint]/?Action=DescribeRegions
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeRegionsResponse>
    <RequestId>A355E857-97F5-5054-9AC8-BCE064939652</RequestId>
    <Regions>
        <Region>
            <RegionId>cn-hangzhou</RegionId>
            <RegionEndpoint>privatelink.cn-hangzhou.aliyuncs.com</RegionEndpoint>
            <LocalName>华东1(杭州)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-shanghai</RegionId>
            <RegionEndpoint>privatelink.cn-shanghai.aliyuncs.com</RegionEndpoint>
            <LocalName>华东2(上海)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-nanjing</RegionId>
            <RegionEndpoint>privatelink.cn-nanjing.aliyuncs.com</RegionEndpoint>
            <LocalName>华东5(南京-本地地域)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-qingdao</RegionId>
            <RegionEndpoint>privatelink.cn-qingdao.aliyuncs.com</RegionEndpoint>
            <LocalName>华北1(青岛)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-beijing</RegionId>
            <RegionEndpoint>privatelink.cn-beijing.aliyuncs.com</RegionEndpoint>
            <LocalName>华北2(北京)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-zhangjiakou</RegionId>
            <RegionEndpoint>privatelink.cn-zhangjiakou.aliyuncs.com</RegionEndpoint>
            <LocalName>华北3(张家口)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-huhehaote</RegionId>
            <RegionEndpoint>privatelink.cn-huhehaote.aliyuncs.com</RegionEndpoint>
            <LocalName>华北5(呼和浩特)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-wulanchabu</RegionId>
            <RegionEndpoint>privatelink.cn-wulanchabu.aliyuncs.com</RegionEndpoint>
            <LocalName>华北6(乌兰察布)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-shenzhen</RegionId>
            <RegionEndpoint>privatelink.cn-shenzhen.aliyuncs.com</RegionEndpoint>
            <LocalName>华南1(深圳)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-heyuan</RegionId>
            <RegionEndpoint>privatelink.cn-heyuan.aliyuncs.com</RegionEndpoint>
            <LocalName>China (Heyuan)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-guangzhou</RegionId>
            <RegionEndpoint>privatelink.cn-guangzhou.aliyuncs.com</RegionEndpoint>
            <LocalName>华南3(广州)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-chengdu</RegionId>
            <RegionEndpoint>privatelink.cn-chengdu.aliyuncs.com</RegionEndpoint>
            <LocalName>西南1(成都)</LocalName>
        </Region>
        <Region>
            <RegionId>cn-hongkong</RegionId>
            <RegionEndpoint>privatelink.cn-hongkong.aliyuncs.com</RegionEndpoint>
            <LocalName>中国(香港)</LocalName>
        </Region>
        <Region>
            <RegionId>ap-southeast-1</RegionId>
            <RegionEndpoint>privatelink.ap-southeast-1.aliyuncs.com</RegionEndpoint>
            <LocalName>新加坡</LocalName>
        </Region>
        <Region>
            <RegionId>ap-southeast-2</RegionId>
            <RegionEndpoint>privatelink.ap-southeast-2.aliyuncs.com</RegionEndpoint>
            <LocalName>澳大利亚(悉尼)</LocalName>
        </Region>
        <Region>
            <RegionId>ap-southeast-3</RegionId>
            <RegionEndpoint>privatelink.ap-southeast-3.aliyuncs.com</RegionEndpoint>
            <LocalName>马来西亚(吉隆坡)</LocalName>
        </Region>
        <Region>
            <RegionId>ap-southeast-5</RegionId>
            <RegionEndpoint>privatelink.ap-southeast-5.aliyuncs.com</RegionEndpoint>
            <LocalName>印度尼西亚(雅加达)</LocalName>
        </Region>
        <Region>
            <RegionId>ap-northeast-1</RegionId>
            <RegionEndpoint>privatelink.ap-northeast-1.aliyuncs.com</RegionEndpoint>
            <LocalName>日本(东京)</LocalName>
        </Region>
        <Region>
            <RegionId>eu-central-1</RegionId>
            <RegionEndpoint>privatelink.eu-central-1.aliyuncs.com</RegionEndpoint>
            <LocalName>德国(法兰克福)</LocalName>
        </Region>
        <Region>
            <RegionId>eu-west-1</RegionId>
            <RegionEndpoint>privatelink.eu-west-1.aliyuncs.com</RegionEndpoint>
            <LocalName>英国(伦敦)</LocalName>
        </Region>
        <Region>
            <RegionId>us-west-1</RegionId>
            <RegionEndpoint>privatelink.us-west-1.aliyuncs.com</RegionEndpoint>
            <LocalName>美国(硅谷)</LocalName>
        </Region>
        <Region>
            <RegionId>us-east-1</RegionId>
            <RegionEndpoint>privatelink.us-east-1.aliyuncs.com</RegionEndpoint>
            <LocalName>美国(弗吉尼亚)</LocalName>
        </Region>
        <Region>
            <RegionId>ap-south-1</RegionId>
            <RegionEndpoint>privatelink.ap-south-1.aliyuncs.com</RegionEndpoint>
            <LocalName>印度(孟买)</LocalName>
        </Region>
    </Regions>
</DescribeRegionsResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "A355E857-97F5-5054-9AC8-BCE064939652",
  "Regions" : {
    "Region" : [ {
      "RegionId" : "cn-hangzhou",
      "RegionEndpoint" : "privatelink.cn-hangzhou.aliyuncs.com",
      "LocalName" : "华东1(杭州)"
    }, {
      "RegionId" : "cn-shanghai",
      "RegionEndpoint" : "privatelink.cn-shanghai.aliyuncs.com",
      "LocalName" : "华东2(上海)"
    }, {
      "RegionId" : "cn-nanjing",
      "RegionEndpoint" : "privatelink.cn-nanjing.aliyuncs.com",
      "LocalName" : "华东5(南京-本地地域)"
    }, {
      "RegionId" : "cn-qingdao",
      "RegionEndpoint" : "privatelink.cn-qingdao.aliyuncs.com",
      "LocalName" : "华北1(青岛)"
    }, {
      "RegionId" : "cn-beijing",
      "RegionEndpoint" : "privatelink.cn-beijing.aliyuncs.com",
      "LocalName" : "华北2(北京)"
    }, {
      "RegionId" : "cn-zhangjiakou",
      "RegionEndpoint" : "privatelink.cn-zhangjiakou.aliyuncs.com",
      "LocalName" : "华北3(张家口)"
    }, {
      "RegionId" : "cn-huhehaote",
      "RegionEndpoint" : "privatelink.cn-huhehaote.aliyuncs.com",
      "LocalName" : "华北5(呼和浩特)"
    }, {
      "RegionId" : "cn-wulanchabu",
      "RegionEndpoint" : "privatelink.cn-wulanchabu.aliyuncs.com",
      "LocalName" : "华北6(乌兰察布)"
    }, {
      "RegionId" : "cn-shenzhen",
      "RegionEndpoint" : "privatelink.cn-shenzhen.aliyuncs.com",
      "LocalName" : "华南1(深圳)"
    }, {
      "RegionId" : "cn-heyuan",
      "RegionEndpoint" : "privatelink.cn-heyuan.aliyuncs.com",
      "LocalName" : "China (Heyuan)"
    }, {
      "RegionId" : "cn-guangzhou",
      "RegionEndpoint" : "privatelink.cn-guangzhou.aliyuncs.com",
      "LocalName" : "华南3(广州)"
    }, {
      "RegionId" : "cn-chengdu",
      "RegionEndpoint" : "privatelink.cn-chengdu.aliyuncs.com",
      "LocalName" : "西南1(成都)"
    }, {
      "RegionId" : "cn-hongkong",
      "RegionEndpoint" : "privatelink.cn-hongkong.aliyuncs.com",
      "LocalName" : "中国(香港)"
    }, {
      "RegionId" : "ap-southeast-1",
      "RegionEndpoint" : "privatelink.ap-southeast-1.aliyuncs.com",
      "LocalName" : "新加坡"
    }, {
      "RegionId" : "ap-southeast-2",
      "RegionEndpoint" : "privatelink.ap-southeast-2.aliyuncs.com",
      "LocalName" : "澳大利亚(悉尼)"
    }, {
      "RegionId" : "ap-southeast-3",
      "RegionEndpoint" : "privatelink.ap-southeast-3.aliyuncs.com",
      "LocalName" : "马来西亚(吉隆坡)"
    }, {
      "RegionId" : "ap-southeast-5",
      "RegionEndpoint" : "privatelink.ap-southeast-5.aliyuncs.com",
      "LocalName" : "印度尼西亚(雅加达)"
    }, {
      "RegionId" : "ap-northeast-1",
      "RegionEndpoint" : "privatelink.ap-northeast-1.aliyuncs.com",
      "LocalName" : "日本(东京)"
    }, {
      "RegionId" : "eu-central-1",
      "RegionEndpoint" : "privatelink.eu-central-1.aliyuncs.com",
      "LocalName" : "德国(法兰克福)"
    }, {
      "RegionId" : "eu-west-1",
      "RegionEndpoint" : "privatelink.eu-west-1.aliyuncs.com",
      "LocalName" : "英国(伦敦)"
    }, {
      "RegionId" : "us-west-1",
      "RegionEndpoint" : "privatelink.us-west-1.aliyuncs.com",
      "LocalName" : "美国(硅谷)"
    }, {
      "RegionId" : "us-east-1",
      "RegionEndpoint" : "privatelink.us-east-1.aliyuncs.com",
      "LocalName" : "美国(弗吉尼亚)"
    }, {
      "RegionId" : "ap-south-1",
      "RegionEndpoint" : "privatelink.ap-south-1.aliyuncs.com",
      "LocalName" : "印度(孟买)"
    } ]
  }
}

错误码

访问错误中心查看更多错误码。