All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

CreateSnapshot

Last updated:2021-10-26 22:51:21

1. Description

You can call this operation to create a snapshot for an EBS volume. You must log in to the console and activate the snapshot service before you create a snapshot for the first time. If a snapshot is being created for an EBS volume, you cannot create another snapshot for it.

2. Request parameters

Parameter Type Required Description
VolumeId String Yes The ID of the EBS volume. You can create snapshots only for EBS 3.0 volumes in the in-use or available state. If an EBS 3.0 volume is in the in-use state, you can create a snapshot for it only when the KEC instance to which it is attached is in the active or stopped state. The ID must be 36 characters in length and can contain letters, digits, hyphens (-), and underscores (_).
SnapshotName String No The name of the snapshot. The name must be 2 to 50 characters in length and can contain letters, digits, hyphens (-), and underscores (_). The name is automatically generated if this parameter is not specified. The name cannot start with auto.
SnapshotDesc String No The description of the snapshot. The description can be up to 50 characters in length.
SnapshotType String No The type of the snapshot. Default value: CommonSnapShot.

3. Response parameters

Parameter Type Description
RequestId String The request ID, which is unique. A request ID is returned for each request.
SnapshotId String The ID of the snapshot.

4. Examples

Request parameters

http://ebs.api.ksyun.com/
?Action=CreateSnapshot
&Version=2016-03-04
&VolumeId=b01cbcb3-04dd-40c8-bfbb-dc990d54ee68
&SnapshotName=test
&SnapshotDesc=testsnapshot

Response parameters

 "RequestId": "6e2682a1-5968-42f5-80e5-284aae218df0",
 "SnapshotId": "4cf5f560-6698-4796-b391-9d751e4d27cb"
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback