Get a list of all data centers

basic information

Get a list of all data centers

请求路径

  1. GET /openapi/v1/regions

return result

status codeStatus code meaningillustratedata model
200OKsuccessInline

return data structure

Status code 200

nametyperequiredconstraintChinese nameillustrate
anonymousRegionInfoRespfalsenonenone
» region_idstringfalsenoneRegion idregion id
» region_namestringtruenoneRegion namecluster name
» region_aliasstringtruenoneRegion aliascluster alias
» urlstringtruenoneUrlCluster API url
» wsurlstringfalsenoneWsurlcluster websocket url
» httpdomainstringfalsenoneHttpdomainCluster http application access root domain name
» tcpdomainstringfalsenoneTcpdomainCluster tcp application access root domain name
» statusstringtruenoneStatusCluster Status 0:Editing 1: Enabled 2:Disabled 3: In Maintenance
» descstringtruenoneDescCluster description
» scopestringfalsenoneScopedata center scope private
» ssl_ca_certstring¦nullfalsenonessl ca certapi ca file
» cert_filestring¦nullfalsenoneCert fileapi cert file
» key_filestring¦nullfalsenoneKey fileapi cert key file

Model

RegionInfoResp

  1. {
  2. "region_id": "string",
  3. "region_name": "string",
  4. "region_alias": "string",
  5. "url": "string",
  6. "wsurl": "string",
  7. "httpdomain" : "string",
  8. "tcpdomain": "string",
  9. "status": "st",
  10. "desc": "string",
  11. "scope": "private",
  12. "ssl_ca_cert": "string",
  13. "cert_file": "string",
  14. "key_file": "string"
  15. }

Attributes

nametyperequiredconstraintChinese nameillustrate
region_idstringfalsenoneRegion idregion id
region_namestringtruenoneRegion namecluster name
region_aliasstringtruenoneRegion aliascluster alias
urlstringtruenoneUrlCluster API url
wsurlstringfalsenoneWsurlcluster websocket url
httpdomainstringfalsenoneHttpdomainCluster http application access root domain name
tcpdomainstringfalsenoneTcpdomainCluster tcp application access root domain name
statusstringtruenoneStatusCluster Status 0:Editing 1: Enabled 2:Disabled 3: In Maintenance
descstringtruenoneDescCluster description
scopestringfalsenoneScopedata center scope private
ssl_ca_certstring¦nullfalsenonessl ca certapi ca file
cert_filestring¦nullfalsenoneCert fileapi cert file
key_filestring¦nullfalsenoneKey fileapi cert key file