获取全部数据中心列表v2

基础信息

获取全部数据中心列表

请求路径

  1. GET /openapi/v2/manage/regions

请求参数

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

返回结果

状态码状态码含义说明数据模型
200OK成功ListRegionsResp

模型

ListRegionsResp

  1. {
  2. "total": 0,
  3. "data": [
  4. {
  5. "region_id": "string",
  6. "enterprise_id": "string",
  7. "enterprise_alias": "string",
  8. "region_name": "string",
  9. "region_alias": "string",
  10. "region_type": [
  11. "string"
  12. ],
  13. "url": "string",
  14. "wsurl": "string",
  15. "httpdomain": "string",
  16. "tcpdomain": "string",
  17. "status": "st",
  18. "desc": "string",
  19. "ssl_ca_cert": "string",
  20. "cert_file": "string",
  21. "key_file": "string",
  22. "total_memory": 0,
  23. "used_memory": 0,
  24. "total_cpu": 0,
  25. "used_cpu": 0,
  26. "total_disk": 0,
  27. "used_disk": 0,
  28. "rbd_version": "string"
  29. }
  30. ]
  31. }

属性

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

RegionInfoAndStatusResp

  1. {
  2. "region_id": "string",
  3. "enterprise_id": "string",
  4. "enterprise_alias": "string",
  5. "region_name": "string",
  6. "region_alias": "string",
  7. "region_type": [
  8. "string"
  9. ],
  10. "url": "string",
  11. "wsurl": "string",
  12. "httpdomain": "string",
  13. "tcpdomain": "string",
  14. "status": "st",
  15. "desc": "string",
  16. "ssl_ca_cert": "string",
  17. "cert_file": "string",
  18. "key_file": "string",
  19. "total_memory": 0,
  20. "used_memory": 0,
  21. "total_cpu": 0,
  22. "used_cpu": 0,
  23. "total_disk": 0,
  24. "used_disk": 0,
  25. "rbd_version": "string"
  26. }

属性

名称类型必选约束中文名说明
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集群版本