You can call this operation to delete an image template.

Description

If an image build task based on the 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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteImagePipeline

The operation that you want to perform. Set the value to DeleteImagePipeline.

ImagePipelineId String Yes ip-2ze5tsl5bp6nf2b3****

The ID of the image template.

RegionId String Yes cn-hangzhou

The region ID of the image template. You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=DeleteImagePipeline
&ImagePipelineId=ip-2ze5tsl5bp6nf2b3****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteImagePipelineResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteImagePipelineResponse>

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

For a list of error codes, visit the API Error Center.