Deletes an image template.
Operation description
Description
If an image build task based on an image template is in the BUILDING, DISTRIBUTING, RELEASING, or CANCELLING state, you cannot delete the template. You can delete the template only when the image build task is in the SUCCESS, FAILED, or CANCELLED state. You can call the DescribeImagePipelineExecutions operation to query the details of an image build task.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the image template. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ImagePipelineId | string | Yes | The ID of the image template. | ip-2ze5tsl5bp6nf2b3**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
403 | InvalidImagePipeline.HasRunningExecution | %s |
404 | InvalidImagePipeline.NotFound | %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-08-30 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||
|