Memantau pengarsipan snapshot - Amazon EBS

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

Memantau pengarsipan snapshot

Amazon EBS memancarkan peristiwa yang terkait dengan tindakan pengarsipan snapshot. Anda dapat menggunakan AWS Lambda dan CloudWatch Acara Amazon untuk menangani pemberitahuan acara secara terprogram. Peristiwa dipancarkan atas dasar upaya terbaik. Untuk informasi selengkapnya, lihat Panduan Pengguna CloudWatch Acara Amazon.

Peristiwa berikut ini tersedia:

  • archiveSnapshot — Dipancarkan ketika tindakan pengarsipan snapshot berhasil atau gagal.

    Berikut ini adalah contoh peristiwa yang dipancarkan saat tindakan arsip snapshot berhasil.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "archiveSnapshot", "result": "succeeded", "cause": "", "request-id": "123456789", "snapshot_id": "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-05-45T15:30:00Z", "recycleBinExitTime": "2021-10-45T15:30:00Z" }

    Berikut ini adalah contoh peristiwa yang dipancarkan saat tindakan arsip snapshot gagal.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "archiveSnapshot", "result": "failed", "cause": "Source snapshot ID is not valid", "request-id": "1234567890", "snapshot_id": "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-05-45T15:30:00Z", "recycleBinExitTime": "2021-10-45T15:30:00Z" } }
  • permanentRestoreSnapshot — Dipancarkan ketika tindakan pemulihan permanen berhasil atau gagal.

    Berikut ini adalah contoh peristiwa yang dipancarkan saat tindakan pemulihan permanen berhasil.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "permanentRestoreSnapshot", "result": "succeeded", "cause": "", "request-id": "1234567890", "snapshot_id": "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-10-45T15:30:00Z" } }

    Berikut ini adalah contoh peristiwa yang dipancarkan saat tindakan pemulihan permanen gagal.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "permanentRestoreSnapshot", "result": "failed", "cause": "Source snapshot ID is not valid", "request-id": "1234567890", "snapshot_id": "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-05-45T15:30:00Z", "recycleBinExitTime": "2021-10-45T15:30:00Z" } }
  • temporaryRestoreSnapshot — Dipancarkan ketika tindakan pemulihan sementara berhasil atau gagal.

    Berikut ini adalah contoh peristiwa yang dipancarkan saat tindakan pemulihan sementara berhasil.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "temporaryRestoreSnapshot", "result": "succeeded", "cause": "", "request-id": "1234567890", "snapshot_id": "arn:aws:ec2:us-us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-05-45T15:30:00Z", "restoreExpiryTime": "2021-06-45T15:30:00Z", "recycleBinExitTime": "2021-10-45T15:30:00Z" } }

    Berikut ini adalah contoh peristiwa yang dipancarkan saat tindakan pemulihan sementara gagal.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "temporaryRestoreSnapshot", "result": "failed", "cause": "Source snapshot ID is not valid", "request-id": "1234567890", "snapshot_id": "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-05-45T15:30:00Z", "recycleBinExitTime": "2021-10-45T15:30:00Z" } }
  • restoreExpiry — Dipancarkan saat periode pemulihan untuk snapshot yang dipulihkan sementara kedaluwarsa.

    Berikut sebuah contoh.

    { "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "EBS Snapshot Notification", "source": "aws.ec2", "account": "123456789012", "time": "2021-05-25T13:12:22Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef" ], "detail": { "event": "restoryExpiry", "result": "succeeded", "cause": "", "request-id": "1234567890", "snapshot_id": "arn:aws:ec2:us-east-1::snapshot/snap-01234567890abcdef", "startTime": "2021-05-25T13:12:22Z", "endTime": "2021-05-45T15:30:00Z", "recycleBinExitTime": "2021-10-45T15:30:00Z" } }