Add data center

basic information

Add data center

请求路径

  1. POST /openapi/v1/regions

Body请求参数

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

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

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

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