Image event notifications

更新时间:
复制 MD 格式

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.

image

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:

  • Waiting

  • Creating

  • Available

  • CreateFailed

  • Deleted

  • Deprecated

Available

References