请求参数
名称 |
类型 |
必须 |
长度限制(字符) |
参数格式 |
描述 |
Action |
String |
是 |
确定值 |
[a-zA-Z]+ |
操作接口名,系统规定参数,取值:ListRegions |
返回元素(调用成功)
名称 |
类型 |
描述 |
Regions |
Array |
数据 |
RequestId |
String |
请求id |
Regions参数说明:
名称 |
类型 |
描述 |
RegionName |
String |
机房中文名 |
RegionEnName |
String |
机房英文名 |
RegionId |
String |
机房code |
错误码(调用不成功)
错误代码(Code) |
错误消息(Message) |
HTTP 状态码 |
中文描述(语义) |
MissingRequiredHeader |
Bad request, must include valid http header: X-KSC-ACCOUNT-ID, X-KSC-SERVICE, X-KSC-REGION. |
400 |
|
示例
请求示例
https://quota.api.ksyun.com/?Action=ListRegions&Version=2021-05-19
返回示例
{
"Regions": [
{
"RegionName": "华东1(上海)",
"RegionEnName": "CN East 1(Shanghai)",
"RegionId": "cn-shanghai-2"
},
{
"RegionName": "华北1(北京)",
"RegionEnName": "CN North 1(Beijing)",
"RegionId": "cn-beijing-6"
},
{
"RegionName": "新加坡",
"RegionEnName": "Singapore",
"RegionId": "ap-singapore-1"
},
{
"RegionName": "华南1(广州)",
"RegionEnName": "CN South 1(Guangzhou)",
"RegionId": "cn-guangzhou-1"
},
{
"RegionName": "俄罗斯(莫斯科)",
"RegionEnName": "Russia (Moscow)",
"RegionId": "eu-east-1"
},
{
"RegionName": "华北政务1(北京)",
"RegionEnName": "CN North Government 1(Beijing)",
"RegionId": "cn-north-1-gov"
},
{
"RegionName": "西南1(重庆)",
"RegionEnName": "CN Southwest 1(Chongqing)",
"RegionId": "cn-southwest-1"
},
{
"RegionName": "华北金融1(北京)",
"RegionEnName": "CN North Finance 1(Beijing)",
"RegionId": "cn-beijing-fin"
},
{
"RegionName": "华东金融1(上海)",
"RegionEnName": "CN East Finance 1(Shanghai)",
"RegionId": "cn-shanghai-fin"
},
{
"RegionName": "华中1(武汉)",
"RegionEnName": "CN Central 1(Wuhan)",
"RegionId": "cn-central-1"
}
],
"RequestId": "f70d6bb2-107f-44d7-8eb3-b991de345fa2"
}