調用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"
}
]
}
}
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。