You can subscribe to notifications for snapshot creation events.

Snapshot creation

After a snapshot is created for a disk, ECS sends you a notification to indicate whether the operation succeeded. Example:

  "ver": "1.0",
  "id": "2256A988-0B26-4E2B-820A-8A********E5",
  "product": "ECS",
  "resourceId": "acs:ecs:cn-hangzhou:169070********30:snapshot/s-bp1fis********b859b3",
  "level": "INFO",
  "name": "Snapshot:CreateSnapshotCompleted",
  "userId": "169070********30",
  "eventTime": "20190409T121826.922+0800",
  "regionId": "cn-hangzhou",
  "content": {
    "result": "accomplished",
    "snapshotId": "s-bp1fis********b859b3",
    "snapshotName": "test-snapshot",   
    "diskId": "d-bp1bwa********9ol4mi",
    "startTime": "2019-04-22T08:36:09Z",
    "endTime": "2019-04-22T08:37:11Z"
The following table describes sub-fields in the content field.
Field Description Example value
result The result of snapshot creation. Valid values:
  • accomplished: Snapshot creation succeeded.
  • failed: Snapshot creation failed.
snapshotId The ID of the snapshot. s-bp1fis********b859b3
snapshotName The name of the snapshot. test-snapshot
diskId The ID of the disk. d-bp1bwa********9ol4mi
startTime The time when the creation of the snapshot starts (UTC+0). 2019-04-22T08:36:09Z
endTime The time when the creation of the snapshot ends (UTC+0). 2019-04-22T08:37:11Z
Note ECS does not send notifications for snapshots created automatically. In this case, you can log on to the ECS console or call the DescribeSnapshots operation to check whether the snapshot is created.