Snapshot creation event notifications

更新时间:
复制 MD 格式

Subscribe to system events that notify you when a snapshot creation succeeds or fails.

Snapshot creation event

When a disk snapshot is created, ECS sends a notification indicating whether the operation succeeded or failed. Example:

{
  "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",
    "snapshotType": "user",
    "diskId": "d-bp1bwa********9ol4mi",
    "startTime": "2019-04-22T08:36:09Z",
    "endTime": "2019-04-22T08:37:11Z"
  }
}

Subparameters in the content parameter:

Subparameter

Description

Example

result

Operation result. Valid values:

  • accomplished: The snapshot was created.

  • failed: The snapshot failed to be created.

accomplished

snapshotId

The snapshot ID.

s-bp1fis********b859b3

snapshotName

The snapshot name.

test-snapshot

snapshotType

The snapshot type. Valid values:

  • user: manual snapshots

  • timer: scheduled snapshots

  • copied: copied snapshots

  • imported: imported snapshots

user

diskId

The disk ID.

d-bp1bwa********9ol4mi

startTime

The time when snapshot creation started, in UTC.

2019-04-22T08:36:09Z

endTime

The time when snapshot creation completed, in UTC.

2019-04-22T08:37:11Z