Skip to main content

Get a list of all data centers

basic information

Get a list of all data centers

请求路径
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

{
"region_id": "string",
"region_name": "string",
"region_alias": "string",
"url": "string",
"wsurl": "string",
"httpdomain" : "string",
"tcpdomain": "string",
"status": "st",
"desc": "string",
"scope": "private",
"ssl_ca_cert": "string",
"cert_file": "string",
"key_file": "string"
}

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