CreateSnapshot
In this article:
CreateSnapshot#
Description#
The request for creating a virtual volume 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.
Type: List of TagSpecification objects
Required: No
VersionId — The ID of the volume version.
Required: No
Type: String
Response Elements#
description — The description.
Type: String
ownerId — The ID of the project.
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:
pending
|completed
|error
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_id>
c2-ec2 CreateSnapshot VolumeId <vol_id> Description 'Test snapshot'
c2-ec2 CreateSnapshot VolumeId <vol_id> VersionId <ver_id> Description 'Snapshot from version'
c2-ec2 CreateSnapshot VolumeId <vol_id> TagSpecification.0.ResourceType "snapshot" \
TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"