获取全部数据中心列表v2
基础信息
获取全部数据中心列表
请求路径
GET /openapi/v2/manage/regions
请求参数
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| query | query | string | 否 | 根据数据中心名称搜索 | |
| current | query | string | 否 | 页码 | |
| pageSize | query | string | 否 | 每页数量 |
返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | 成功 | ListRegionsResp |
模型
ListRegionsResp
{
"total": 0,
"data": [
{
"region_id": "string",
"enterprise_id": "string",
"enterprise_alias": "string",
"region_name": "string",
"region_alias": "string",
"region_type": [
"string"
],
"url": "string",
"wsurl": "string",
"httpdomain": "string",
"tcpdomain": "string",
"status": "st",
"desc": "string",
"ssl_ca_cert": "string",
"cert_file": "string",
"key_file": "string",
"total_memory": 0,
"used_memory": 0,
"total_cpu": 0,
"used_cpu": 0,
"total_disk": 0,
"used_disk": 0,
"rbd_version": "string"
}
]
}
属性
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| total | integer | true | none | Total | 总数 |
| data | [RegionInfoAndStatusResp] | true | none | none |
RegionInfoAndStatusResp
{
"region_id": "string",
"enterprise_id": "string",
"enterprise_alias": "string",
"region_name": "string",
"region_alias": "string",
"region_type": [
"string"
],
"url": "string",
"wsurl": "string",
"httpdomain": "string",
"tcpdomain": "string",
"status": "st",
"desc": "string",
"ssl_ca_cert": "string",
"cert_file": "string",
"key_file": "string",
"total_memory": 0,
"used_memory": 0,
"total_cpu": 0,
"used_cpu": 0,
"total_disk": 0,
"used_disk": 0,
"rbd_version": "string"
}