ECS sends image status change events when you create, import, copy, delete, or modify images through the ECS console or API operations.
Image status change events
ECS sends image status change events when you perform operations such as creating, importing, copying, or deleting images, canceling import or copy tasks, or modifying image attributes.
The following example shows an event notification when the image status changes to Available.
{
"id": "72A8BFEC-C05E-4C22-A96B-F968********",
"product": "ECS",
"resourceId": "acs:ecs:ap-southeast-1:19638045********:image/m-uf64c9ocm9pe********",
"level": "INFO",
"name": "Image:StateChange",
"userId": "19638045********",
"eventTime": "20240410T160101.922+0800",
"regionId": "ap-southeast-1",
"content": {
"imageId": "m-uf64c9ocm9p********",
"currentState": "Available"
}
}
The following table describes the fields in the content element.
|
Field |
Description |
Example |
|
imageId |
The image ID. |
m-uf64c9ocm9pevaj**** |
|
currentState |
The current image status. Valid values:
|
Available |
References
-
CreateImage: creates a custom image.
-
ImportImage: imports an on-premises image to ECS.
-
CopyImage: copies a custom image from one region to another region.
-
DeleteImage: deletes a custom image.
-
CancelTask: cancels a running task.
-
CancelCopyImage: cancels an image copy task in progress.
-
ModifyImageAttribute: modifies the attributes of a custom image.