Skip to main content

Add data center

basic information

Add data center

请求路径
POST /openapi/v1/regions
Body请求参数
{
"cert_file": "string",
"desc": "string",
"httpdomain": "string",
"key_file": "string",
"region_alias": "string",
"region_name" : "string",
"scope": "string",
"ssl_ca_cert": "string",
"status": 0,
"tcpdomain": "string",
"url": "string",
" wsurl": "string"
}

request parameters

nameLocationtyperequiredChinese nameillustrate
bodybodyobjectnoAddRegionRequestnone
» cert_filebodystringnonone
» descbodystringnoRemark
» httpdomainbodystringYesnone
» key_filebodystringnonone
» region_aliasbodystringYescluster alias
» region_namebodystringYescluster ID
» scopebodystringnonone
» ssl_ca_certbodystringnonone
» statusbodyintegernonone
» tcpdomainbodystringYesnone
» urlbodystringYesnone
» wsurlbodystringYesnone

back to example

return result

status codeStatus code meaningillustratedata model
201CreatedsuccessRegionInfo
400Bad Request400Fail

Model

RegionInfo

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

Attributes

nametyperequiredconstraintChinese nameillustrate
region_idstringtruenoneRegion idregion id
region_namestringtruenoneRegion nameData center name, cannot be modified
region_aliasstringtruenoneRegion aliasdata center alias
urlstringtruenoneUrlDatacenter API url
tokenstring¦nullfalsenoneTokendata center token
wsurlstringtruenoneWsurldatacenter websocket url
httpdomainstringtruenoneHttpdomainData center http application access root domain name
tcpdomainstringtruenoneTcpdomainData center tcp application access root domain name
scopestringfalsenoneScopedata center scope private
ssl_ca_certstring¦nullfalsenonessl ca certData center access ca certificate address
cert_filestring¦nullfalsenoneCert fileVerify documents
key_filestring¦nullfalsenoneKey fileverification key
statusstringtruenoneStatusData Center Status 0:Editing 1: Enabled 2:Disabled 3: In Maintenance
descstringfalsenoneDescData Center Description
enterprise_idstring¦nullfalsenoneEnterprise identerprise id