operating application

Basic Information

This interface is mainly used for components under batch operation applications, and supports start, stop, update, and build

请求路径

  1. POST /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/operations

Body 请求体示例

  1. {
  2. "action": "stop",
  3. "service_ids": [
  4. "string"
  5. ]
  6. }

request parameters

nameLocationtyperequiredChinese nameillustrate
app_idpathintegerYesapp id
team_idpathstringYesnone
region_namepathstringYesnone
bodybodyServiceGroupOperationsnonone

return result

status codeStatus code meaningillustratedata model
200OKsuccessSuccess

return data structure

响应示例

Model

ServiceGroupOperations

  1. {
  2. "action": "stop",
  3. "service_ids": [
  4. "string"
  5. ]
  6. }

Attributes

nametyperequiredconstraintChinese nameillustrate
actionstringtruenoneActionOperation type
service_ids[string]falsenoneList of component IDs, if no value is passed, all components under the application will be operated

enumeration value

Attributesvalue
actionstop
actionstart
actionupgrade
actiondeploy