调用DescribeRegions查询可用地域。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeRegions |
系统规定参数。取值:DescribeRegions。 |
AcceptLanguage | String | 否 | zh-CN |
支持的语言。包括以下取值:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Regions | Array |
返回Region列表。 |
|
Region | |||
LocalName | String | 华东1(杭州) |
地域名称。 |
RegionEndpoint | String | cassandra.aliyuncs.com |
Region服务的Endpoint地址。 |
RegionId | String | 华东1(杭州) |
地域ID,如cn-hangzhou。 |
Zones | Array |
可用区列表。 |
|
Zone | |||
Id | String | cn-hangzhou-b |
可用区ID。 |
RequestId | String | F20BBD34-681D-4613-8EFA-259DF510A897 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeRegions
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>F20BBD34-681D-4613-8EFA-259DF510A897</RequestId>
<Regions>
<Region>
<RegionId>cn-hangzhou</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>华东1(杭州)</LocalName>
<Zones>
<Zone>
<Id>cn-hangzhou-h</Id>
</Zone>
<Zone>
<Id>cn-hangzhou-i</Id>
</Zone>
<Zone>
<Id>cn-hangzhou-b</Id>
</Zone>
<Zone>
<Id>cn-hangzhou-e</Id>
</Zone>
<Zone>
<Id>cn-hangzhou-f</Id>
</Zone>
<Zone>
<Id>cn-hangzhou-g</Id>
</Zone>
</Zones>
</Region>
<Region>
<RegionId>cn-shanghai</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>华东2(上海)</LocalName>
<Zones>
<Zone>
<Id>cn-shanghai-g</Id>
</Zone>
<Zone>
<Id>cn-shanghai-e</Id>
</Zone>
<Zone>
<Id>cn-shanghai-f</Id>
</Zone>
<Zone>
<Id>cn-shanghai-a</Id>
</Zone>
<Zone>
<Id>cn-shanghai-b</Id>
</Zone>
<Zone>
<Id>cn-shanghai-c</Id>
</Zone>
<Zone>
<Id>cn-shanghai-d</Id>
</Zone>
</Zones>
</Region>
<Region>
<RegionId>cn-qingdao</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>华北1(青岛)</LocalName>
<Zones>
<Zone>
<Id>cn-qingdao-b</Id>
</Zone>
<Zone>
<Id>cn-qingdao-c</Id>
</Zone>
</Zones>
</Region>
<Region>
<RegionId>cn-beijing</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>华北2(北京)</LocalName>
<Zones>
<Zone>
<Id>cn-beijing-h</Id>
</Zone>
<Zone>
<Id>cn-beijing-g</Id>
</Zone>
<Zone>
<Id>cn-beijing-f</Id>
</Zone>
<Zone>
<Id>cn-beijing-a</Id>
</Zone>
<Zone>
<Id>cn-beijing-b</Id>
</Zone>
<Zone>
<Id>cn-beijing-c</Id>
</Zone>
<Zone>
<Id>cn-beijing-d</Id>
</Zone>
<Zone>
<Id>cn-beijing-e</Id>
</Zone>
</Zones>
</Region>
<Region>
<RegionId>cn-shenzhen</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>华南1(深圳)</LocalName>
<Zones>
<Zone>
<Id>cn-shenzhen-d</Id>
</Zone>
<Zone>
<Id>cn-shenzhen-e</Id>
</Zone>
<Zone>
<Id>cn-shenzhen-a</Id>
</Zone>
<Zone>
<Id>cn-shenzhen-b</Id>
</Zone>
<Zone>
<Id>cn-shenzhen-c</Id>
</Zone>
</Zones>
</Region>
<Region>
<RegionId>cn-hongkong</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>中国(香港)</LocalName>
<Zones>
<Zone>
<Id>cn-hongkong-b</Id>
</Zone>
<Zone>
<Id>cn-hongkong-c</Id>
</Zone>
</Zones>
</Region>
<Region>
<RegionId>ap-southeast-1</RegionId>
<RegionEndpoint>cassandra.aliyuncs.com</RegionEndpoint>
<LocalName>新加坡</LocalName>
<Zones>
<Zone>
<Id>ap-southeast-1c</Id>
</Zone>
<Zone>
<Id>ap-southeast-1a</Id>
</Zone>
<Zone>
<Id>ap-southeast-1b</Id>
</Zone>
</Zones>
</Region>
</Regions>
JSON
格式
{
"RequestId": "F20BBD34-681D-4613-8EFA-259DF510A897",
"Regions": {
"Region": [
{
"RegionId": "cn-hangzhou",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "华东1(杭州)",
"Zones": {
"Zone": [
{
"Id": "cn-hangzhou-h"
},
{
"Id": "cn-hangzhou-i"
},
{
"Id": "cn-hangzhou-b"
},
{
"Id": "cn-hangzhou-e"
},
{
"Id": "cn-hangzhou-f"
},
{
"Id": "cn-hangzhou-g"
}
]
}
},
{
"RegionId": "cn-shanghai",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "华东2(上海)",
"Zones": {
"Zone": [
{
"Id": "cn-shanghai-g"
},
{
"Id": "cn-shanghai-e"
},
{
"Id": "cn-shanghai-f"
},
{
"Id": "cn-shanghai-a"
},
{
"Id": "cn-shanghai-b"
},
{
"Id": "cn-shanghai-c"
},
{
"Id": "cn-shanghai-d"
}
]
}
},
{
"RegionId": "cn-qingdao",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "华北1(青岛)",
"Zones": {
"Zone": [
{
"Id": "cn-qingdao-b"
},
{
"Id": "cn-qingdao-c"
}
]
}
},
{
"RegionId": "cn-beijing",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "华北2(北京)",
"Zones": {
"Zone": [
{
"Id": "cn-beijing-h"
},
{
"Id": "cn-beijing-g"
},
{
"Id": "cn-beijing-f"
},
{
"Id": "cn-beijing-a"
},
{
"Id": "cn-beijing-b"
},
{
"Id": "cn-beijing-c"
},
{
"Id": "cn-beijing-d"
},
{
"Id": "cn-beijing-e"
}
]
}
},
{
"RegionId": "cn-shenzhen",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "华南1(深圳)",
"Zones": {
"Zone": [
{
"Id": "cn-shenzhen-d"
},
{
"Id": "cn-shenzhen-e"
},
{
"Id": "cn-shenzhen-a"
},
{
"Id": "cn-shenzhen-b"
},
{
"Id": "cn-shenzhen-c"
}
]
}
},
{
"RegionId": "cn-hongkong",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "中国(香港)",
"Zones": {
"Zone": [
{
"Id": "cn-hongkong-b"
},
{
"Id": "cn-hongkong-c"
}
]
}
},
{
"RegionId": "ap-southeast-1",
"RegionEndpoint": "cassandra.aliyuncs.com",
"LocalName": "新加坡",
"Zones": {
"Zone": [
{
"Id": "ap-southeast-1c"
},
{
"Id": "ap-southeast-1a"
},
{
"Id": "ap-southeast-1b"
}
]
}
}
]
}
}
错误码
访问错误中心查看更多错误码。