Get all data center list v2

basic information

Get a list of all data centers

请求路径

  1. GET /openapi/v2/manage/regions

request parameters

nameLocationtyperequiredChinese nameillustrate
queryquerystringnoSearch by data center name
currentquerystringnopage number
pageSizequerystringnoQuantity per page

return result

status codeStatus code meaningillustratedata model
200OKsuccessListRegionsResp

Model

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

Attributes

nametyperequiredconstraintChinese nameillustrate
totalintegertruenoneTotaltotal
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. }

Attributes

nametyperequiredconstraintChinese nameillustrate
region_idstringtruenoneRegion idregion id
enterprise_idstringtruenoneEnterprise idEnterprise ID
enterprise_aliasstringtruenoneEnterprise aliasbusiness alias
region_namestringtruenoneRegion namecluster name
region_aliasstringtruenoneRegion aliascluster alias
region_type[string]truenoneCluster type
urlstringtruenoneUrlCluster API url
wsurlstringtruenoneWsurlcluster websocket url
httpdomainstringtruenoneHttpdomainCluster http application access root domain name
tcpdomainstringtruenoneTcpdomainCluster tcp application access root domain name
statusstringtruenoneStatusCluster Status 0:Editing 1: Enabled 2:Disabled 3: In Maintenance
descstringtruenoneDescCluster description
ssl_ca_certstringtruenonessl ca certapi ca file
cert_filestringtruenoneCert fileapi cert file
key_filestringtruenoneKey fileapi cert key file
total_memoryintegertruenoneTotal memorySum of scheduling memory MB
used_memoryintegertruenoneUsed memoryScheduling memory usage MB
total_cpuintegertruenonetotal cpuScheduling CPU Sum
used_cpunumbertruenoneused cpuSchedule CPU usage
total_diskintegertruenoneTotal diskTotal GB of global shared storage
used_diskintegertruenoneUsed diskGlobal Shared Storage Usage GB
rbd_versionstringtruenoneRbd versionCluster version