跳到主要内容
版本:V6.0

获取全部数据中心列表v2

基础信息

获取全部数据中心列表

请求路径
GET /openapi/v2/manage/regions

请求参数

名称位置类型必选中文名说明
queryquerystring根据数据中心名称搜索
currentquerystring页码
pageSizequerystring每页数量

返回结果

状态码状态码含义说明数据模型
200OK成功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"
}
]
}

属性

名称类型必选约束中文名说明
totalintegertruenoneTotal总数
data[RegionInfoAndStatusResp]truenonenone

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"
}

属性

名称类型必选约束中文名说明
region_idstringtruenoneRegion idregion id
enterprise_idstringtruenoneEnterprise id企业ID
enterprise_aliasstringtruenoneEnterprise alias企业别名
region_namestringtruenoneRegion name集群名称
region_aliasstringtruenoneRegion alias集群别名
region_type[string]truenone集群类型
urlstringtruenoneUrl集群API url
wsurlstringtruenoneWsurl集群Websocket url
httpdomainstringtruenoneHttpdomain集群http应用访问根域名
tcpdomainstringtruenoneTcpdomain集群tcp应用访问根域名
statusstringtruenoneStatus集群状态 0:编辑中 1:启用 2:停用 3:维护中
descstringtruenoneDesc集群描述
ssl_ca_certstringtruenoneSsl ca certapi ca file
cert_filestringtruenoneCert fileapi cert file
key_filestringtruenoneKey fileapi cert key file
total_memoryintegertruenoneTotal memory调度内存总和MB
used_memoryintegertruenoneUsed memory调度内存使用量MB
total_cpuintegertruenoneTotal cpu调度CPU总和
used_cpunumbertruenoneUsed cpu调度CPU使用量
total_diskintegertruenoneTotal disk全局共享存储总量GB
used_diskintegertruenoneUsed disk全局共享存储使用量GB
rbd_versionstringtruenoneRbd version集群版本