Skip to main content

DescribeSnapshots

Description

Call the DescribeSnapshots to query all snapshots of an ECS instance or a cloud disk.

Request Method

POST

Request Path

/apsara/route/Ecs/DescribeSnapshots

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
Filter. 1.KeyBODYstringNoCreationStartTimefilter key when querying resources. The value must be CreationStartTime.
KMSKeyIdBODYstringNo0e478b7a-4262-4802-b8cb-00d3fb40****KMS key ID corresponding to the data disk.
PageSizeBODYintegerNo10the number of rows per page set during paging query. Maximum value: 100 default value: 10
ResourceGroupIdBODYstringNorg-bp67acfmxazb4p****resource group ID.
EncryptedBODYbooleanNofalsewhether to filter encrypted snapshots. Default value: false
SnapshotLinkIdBODYstringNosp-bp67acfmxazb4p****snapshot chain ID.
DryRunBODYbooleanNofalsewhether to precheck only this request. true: sends a check request and does not query the resource status. Check items include whether the AccessKey is valid, the authorization status of RAM users, and whether required parameters are filled in. If the check fails, the corresponding error is returned. If the check passes, the error code DryRunOperation will be returned. false (default): sends a normal request, returns a 2XX HTTP status code after checking and directly queries the resource status.
SnapshotNameBODYstringNotest-SnapshotNamesnapshot name.
PageNumberBODYintegerNo1the page number of the snapshot list. Starting value: 1 default value: 1
Tag.N.ValueBODYstringNoTestValuethe label value of the snapshot. Value range of n: 1~20
Filter. 1.ValueBODYstringNo2019-12-13T17:00Zfilter value when querying resources. The value must be the value of the start time (CreationStartTime) when the resource was created.
StatusBODYstringNoallsnapshot status. Value range: progressing: snapshot being created accomplished: create a successful snapshot failed: create failed snapshot all (default): all snapshot status
UsageBODYstringNononewhether snapshots are used to create images or cloud disks. Value range: image: created a custom image using a snapshot disk: created a cloud disk using a snapshot image_disk: using snapshots to create data disks and custom images none: Not used yet
Tag.N.KeyBODYstringNoTestKeythe tag key of the snapshot. Value range of n: 1~20
InstanceIdBODYstringNoi-bp67acfmxazb4p****the specified instance ID.
SnapshotIdsBODYstringNo["s-bp67acfmxazb4ph****", "s-bp67acfmxazb4pk ****",… "s-bp67acfmxazb4pj****"]snapshot identification code. The value can be composed of multiple snapshot IDs to form a JSON array. Up to 100 IDs are supported. The IDs are separated by commas (,).
versionBODYstringNo2016-01-01version of api
Filter. 2.KeyBODYstringNoCreationEndTimefilter key when querying resources. The value must be CreationEndTime.
regionIdBODYstringYesNo sample value for this parameter.region id
Filter. 2.ValueBODYstringNo2019-12-13T22:00Zfilter value when querying resources. The value must be the value of the end time (CreationEndTime) of resource creation.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID to which the cloud disk belongs. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
SnapshotTypeBODYstringNoallsnapshot type. Value range: auto: automatic snapshot user: manually created snapshot all (default): all snapshot types
SourceDiskTypeBODYstringNoDatathe cloud disk type of the snapshot source cloud disk. Value range: System: system disk Data: data disk
DiskIdBODYstringNod-bp67acfmxazb4p****the specified cloud disk device ID.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}