Skip to main content

operating application

Basic Information

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

请求路径
POST /openapi/v1/teams/{team_id}/regions/{region_name}/apps/{app_id}/operations
Body 请求体示例
{
"action": "stop",
"service_ids": [
"string"
]
}

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

{
"action": "stop",
"service_ids": [
"string"
]
}

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