Deletes an image from a repository.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteRepoTag |
The operation that you want to perform. Set the value to DeleteRepoTag. |
InstanceId | String | Yes | cri-xkx6vujuhay0tasd |
The ID of the instance. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the instance resides. |
RepoId | String | Yes | crr-xwvi3osiy4ffoasd |
The ID of the image repository. |
Tag | String | Yes | 1.24 |
The tag of the image. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The code returned for the request. |
RequestId | String | 96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DeleteRepoTag
&InstanceId=cri-xkx6vujuhay0tasd
&RegionId=crr-xwvi3osiy4ffoasd
&RepoId=cn-shanghai
&Tag=1.24
&<Common request parameters>
Sample success responses
JSON
format
{
"IsSuccess":true,
"RequestId":"96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0",
"Code":"success"
}
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0</RequestId>
<Code>success</Code>
Error codes
For a list of error codes, visit the API Error Center.