Cancels an image building task.
Operation description
Before you call the CancelImagePipelineExecution operation, make sure that the image building task to be canceled is in the BUILDING, PREPARING, or REPAIRING state.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:CancelImagePipelineExecution |
update |
*ImagePipeline
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| TemplateTag |
array<object> |
No |
Note
This parameter is not publicly available. |
|
|
object |
No |
Note
This parameter is not publicly available. |
||
| Key |
string |
No |
Note
This parameter is not publicly available. |
null |
| Value |
string |
No |
Note
This parameter is not publicly available. |
null |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ExecutionId |
string |
Yes |
The ID of the image building task. |
exec-5fb8facb8ed7427c**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStatus.CancelFailed | Failed to cancel execution,status is success, failed or cancelled. | |
| 403 | InvalidStatus.ImagePipelineExecution | %s | |
| 404 | InvalidImagePipelineExecution.NotFound | The specified image pipeline execution does not exist! | |
| 404 | InvalidImagePipelineExecutionId.NotFound | The specified ImagePipelineExecutionId does not exist. | The specified ImagePipelineExecutionId resource does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.