You can call this operation to delete the specified executions.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteExecutions | The operation that you want to perform. Set this parameter to DeleteExecutions. |
ExecutionIds | String | Yes | [“exec-xxx”] | A JSON array that consists of multiple instance IDs. The format of the JSON array is [“xxxxxxxxx”, “yyyyyyyyy”, … “zzzzzzzzz”]. Separate multiple instance IDs with commas (,). A maximum of 100 instance IDs can be specified at a time. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 14A07460-EBE7-47CA-9757-12CC4761D47A | The ID of the request. |
Examples
Sample request
https://oos.cn-hangzhou.aliyuncs.com/?Action=DeleteExecutionsId
&ExecutionIds=%5B%22exec-8a2aaf460fdf47c6b5ef%22%5D
&<Commom request parameters>
Sample success responseJSON
format
{
"RequestId": "491DF8C2-34C9-4679-9DB3-4C0F49B129AC"
}
Error codes
Error code | HTTP status code | Error message | Description |
---|---|---|---|
InvalidVersion | 400 | Specified parameter Version is not valid. | The error message returned because the specified version is invalid. Specify a valid version in the URL and try again. |
InvalidAction.NotFound | 400 | Specified api is not found, please check your url and method. | The error message returned because the specified operation does not exist. Specify a valid value for the Action parameter. |
User.NoPermission | 401 | User has no permission to do the action: ({api_name}) | The error message returned because the user is not authorized to call this operation. Check whether the current user is authorized to call the OOS API operation in the RAM console. |
InvalidStsToken | 400 | Invalid STS token to do the action: ({api_name}) | The error message returned because the specified STS token is invalid. |
ExpiredStsToken | 400 | Expired STS token to do the action: ({api_name}) | The error message returned because the specified STS token has expired. |
InvalidAccountType | 400 | The account type ({account_type}) was not supported. | The error message returned because the specified account type is not supported. |
Execution.DeleteFailed | 403 | Execution delete failed {{reason}} | The error message returned because you cannot perform the specified operation on an execution in the current state. |
EntityNotExist.Execution | 404 | The specific execution {{key}} does not exist. | The error message returned because the specified execution does not exist. |