获取阿里云地域(Region)列表

调试

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

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

POST /pop/v5/resource/region_list HTTPS|HTTP

请求参数

返回数据

名称 类型 示例值 描述
Code Integer 200

code 码

Message String success

信息

RequestId String b197-40ab-9155-7ca7
RegionEntityList Array

Region 列表

Id String cn-hangzhou

唯一标识 ID

Name String China East 1 (Hangzhou)

地域名称

示例

请求示例

POST /pop/v5/resource/region_list HTTP/1.1
公共请求头

正常返回示例

JSON 格式

{
	"Message": "success",
	"RegionEntityList": {
		"RegionEntity": [
			{
				"Name": "China East 1 (Hangzhou)",
				"Id": "cn-hangzhou"
			},
			{
				"Name": "China North 1 (Qingdao)",
				"Id": "cn-qingdao"
			},
			{
				"Name": "China North 2 (Beijing)",
				"Id": "cn-beijing"
			},
			{
				"Name": "China South 1 (Shenzhen)",
				"Id": "cn-shenzhen"
			},
			{
				"Name": "China East 2 (Shanghai)",
				"Id": "cn-shanghai"
			},
			{
				"Name": "Asia Pacific SE 1 (Singapore)",
				"Id": "ap-southeast-1"
			},
			{
				"Name": "Hong Kong (China)",
				"Id": "cn-hongkong"
			},
			{
				"Name": "Australia(Sydney)",
				"Id": "ap-southeast-2"
			},
			{
				"Name": "America(Virginia)",
				"Id": "us-east-1"
			},
			{
				"Name": "China North 3",
				"Id": "cn-zhangjiakou"
			},
			{
				"Name": "Germany (Frankfurt)",
				"Id": "eu-central-1"
			},
			{
				"Name": "public",
				"Id": "public"
			}
		]
	},
	"Code": 200
}

XML 格式

<Message>success</Message>
<RegionEntityList>
    <RegionEntity>
        <Name>China East 1 (Hangzhou)</Name>
        <Id>cn-hangzhou</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>China North 1 (Qingdao)</Name>
        <Id>cn-qingdao</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>China North 2 (Beijing)</Name>
        <Id>cn-beijing</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>China South 1 (Shenzhen)</Name>
        <Id>cn-shenzhen</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>China East 2 (Shanghai)</Name>
        <Id>cn-shanghai</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>Asia Pacific SE 1 (Singapore)</Name>
        <Id>ap-southeast-1</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>Hong Kong (China)</Name>
        <Id>cn-hongkong</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>Australia(Sydney)</Name>
        <Id>ap-southeast-2</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>America(Virginia)</Name>
        <Id>us-east-1</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>China North 3</Name>
        <Id>cn-zhangjiakou</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>Germany (Frankfurt)</Name>
        <Id>eu-central-1</Id>
    </RegionEntity>
    <RegionEntity>
        <Name>public</Name>
        <Id>public</Id>
    </RegionEntity>
</RegionEntityList>
<Code>200</Code>

错误码

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