调用DescribeRegions可以查询网关有效的地域信息。
请求参数
名称 |
类型 |
是否必选 |
示例值 |
描述 |
Action | String | 是 | DescribeRegions | 系统规定参数。取值:DescribeRegions。 |
返回数据
名称 |
类型 |
示例值 |
描述 |
Message | String | successful | 请求结果描述。 |
RequestId | String | E09C421A-A175-4D21-8928-ADF5643D15F8 | 请求ID。 |
Regions | Array of Region | 地域列表信息。 |
|
Region | |||
RegionId | String | cn-hangzhou | 地域ID。 |
Code | String | 200 | 状态码。状态码为200表示请求成功。 |
Success | Boolean | true | 请求是否成功。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeRegions
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeRegionsResponse>
<code>200</code>
<message>successful</message>
<regions>
<regionId>cn-hangzhou</regionId>
</regions>
<regions>
<regionId>cn-shanghai</regionId>
</regions>
<regions>
<regionId>cn-qingdao</regionId>
</regions>
<regions>
<regionId>cn-beijing</regionId>
</regions>
<regions>
<regionId>cn-zhangjiakou</regionId>
</regions>
<regions>
<regionId>cn-huhehaote</regionId>
</regions>
<regions>
<regionId>cn-shenzhen</regionId>
</regions>
<regions>
<regionId>cn-chengdu</regionId>
</regions>
<regions>
<regionId>cn-hongkong</regionId>
</regions>
<regions>
<regionId>ap-southeast-1</regionId>
</regions>
<regions>
<regionId>ap-southeast-2</regionId>
</regions>
<regions>
<regionId>ap-southeast-5</regionId>
</regions>
<regions>
<regionId>eu-central-1</regionId>
</regions>
<requestId>E09C421A-A175-4D21-8928-ADF5643D15F8</requestId>
<success>true</success>
</DescribeRegionsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : "200",
"message" : "successful",
"regions" : [ {
"regionId" : "cn-hangzhou"
}, {
"regionId" : "cn-shanghai"
}, {
"regionId" : "cn-qingdao"
}, {
"regionId" : "cn-beijing"
}, {
"regionId" : "cn-zhangjiakou"
}, {
"regionId" : "cn-huhehaote"
}, {
"regionId" : "cn-shenzhen"
}, {
"regionId" : "cn-chengdu"
}, {
"regionId" : "cn-hongkong"
}, {
"regionId" : "ap-southeast-1"
}, {
"regionId" : "ap-southeast-2"
}, {
"regionId" : "ap-southeast-5"
}, {
"regionId" : "eu-central-1"
} ],
"requestId" : "E09C421A-A175-4D21-8928-ADF5643D15F8",
"success" : true
}
错误码
访问错误中心查看更多错误码。
该文章对您有帮助吗?