Domain name for API request: ecm.tencentcloudapi.com.
This API is used to delete an image.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DeleteImage. |
Version | Yes | String | Common Params. The value used for this API: 2019-07-19. |
Region | No | String | Common Params. This parameter is not required for this API. |
ImageIDSet.N | Yes | Array of String | List of image IDs. |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to delete an image.
https://ecm.tencentcloudapi.com/?Action=DeleteImage
&ImageIDSet.0=img-pmqg1cw9
&<Common request parameters>
{
"Response": {
"RequestId": "9a4420e4-b5e3-4c28-9d47-65d20f7f072f"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.ImageInUse | The image is in use. |
FailedOperation.InternalOperationFailure | Internal error. |
InvalidParameter.InvalidDataFormat | The data format is incorrect. |
InvalidParameterValue.InvalidImageID | The image ID is invalid. |
InvalidParameterValue.ParameterValueTooLarge | The parameter value exceeds the limit. |
ResourceNotFound | The resource does not exist. |
UnauthorizedOperation.ForbiddenOperation | You don't have the permission to perform this operation. |
Was this page helpful?