Skip to main content

Get all data center list v2

basic information

Get a list of all data centers

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

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

Attributes

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

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