CreateSnapshot#

Description#

The request for creating a snapshot.

Request Parameters#

Required parameters#

  • VolumeId — The ID of the volume.

    • Required: Yes

    • Type: String

Optional parameters#

  • Description — The description of the snapshot.

    • Required: No

    • Type: String

  • TagSpecification.N — The tags assigned to the resource when it is created.

  • VersionId — The ID of the volume version.

    • Required: No

    • Type: String

Response Elements#

  • description — The description of the snapshot.

    • Type: String

  • ownerId — The ID of the owner.

    • Type: String

  • progress — The progress of the snapshot creation process (shown in percentage).

    • Type: String

  • requestId — The request ID.

    • Type: String

  • snapshotId — The ID of the snapshot.

    • Type: String

  • startTime — The timestamp when the snapshot was initiated.

    • Type: Timestamp

  • status — The state of the snapshot.

    • Type: String

    • Valid values: completed | deleted | error | pending

  • tagSet — Any tags assigned to the snapshot.

    • Type: List of Tag objects

  • volumeId — The ID of the volume.

    • Type: String

  • volumeSize — The size of the volume.

    • Type: String

Examples#

c2-ec2 CreateSnapshot VolumeId vol-A001CEE0

c2-ec2 CreateSnapshot VolumeId vol-A001CEE0 VersionId vv-8FF61880 Description 'Snapshot from version'

c2-ec2 CreateSnapshot VolumeId vol-A001CEE0 TagSpecification.0.ResourceType "snapshot" \
                      TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"