Vertical scaling of components

Basic Information

This interface is mainly used for vertical scaling of components

请求路径

  1. POST /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/services/{service_id}/telescopic/vertical

Body 请求体示例

  1. {
  2. "new_memory": 0,
  3. "new_gpu": 0,
  4. "new_cpu": 0
  5. }

request parameters

nameLocationtyperequiredChinese nameillustrate
app_idpathintegerYesapp id
team_idpathstringYesnone
region_namepathstringYesnone
service_idpathstringYesnone
bodybodyAppServiceTelescopicVerticalnonone

return result

status codeStatus code meaningillustratedata model
201CreatedsuccessAppServiceTelescopicVertical

Model

AppServiceTelescopicVertical

  1. {
  2. "new_memory": 0,
  3. "new_gpu": 0,
  4. "new_cpu": 0
  5. }

Attributes

nametyperequiredconstraintChinese nameillustrate
new_memoryintegertruenoneNew memorycomponent memory
new_gpuintegertruenoneNew gpuComponent gpu memory application
new_cpuintegertruenonenew cpuComponent CPU quota application