Call DescribeSnapshots to retrieve snapshot information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeSnapshots |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| EnsRegionId |
string |
No |
The ID of the ENS node. You can call DescribeEnsRegions to query ENS node IDs. |
cn-hangzhou |
| DiskId |
string |
No |
The ID of the cloud disk. |
d-bp67acfmxazb4p**** |
| SnapshotId |
string |
No |
A single snapshot ID, or a JSON array containing up to 100 snapshot IDs. |
sp-bp67acfmxazb4p**** |
| EnsRegionIds |
string |
No |
A JSON array that contains 1 to 100 ENS node IDs. |
["cn-suzhou-telecom","cn-chengdu-telecom"] |
| SnapshotName |
string |
No |
The display name of the snapshot. The name must be 2 to 128 characters long. It must start with a letter or a Chinese character and cannot begin with |
testSnapshotName |
| InstanceId |
string |
No |
The ID of the instance. |
i-bp67acfmxazb4p**** |
| PageNumber |
integer |
No |
The page number to return. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| Snapshots |
array<object> |
A list of snapshot details. |
|
|
object |
|||
| SnapshotId |
string |
The snapshot ID. |
s-bp67acfmxazb4p**** |
| CreationTime |
string |
The time when the snapshot was created. The time is displayed in UTC and is in the yyyy-MM-ddTHH:mm:ssZ format. |
2020-08-20 14:52:28 |
| Status |
string |
The status of the snapshot. Valid values:
|
available |
| Size |
string |
The capacity of the disk. Unit: MiB. |
40 |
| SourceDiskId |
string |
The ID of the source disk. This parameter is retained even after the source disk is released. |
d-bp67acfmxazb4ph**** |
| SourceDiskType |
string |
The attribute of the disk. Valid values:
|
1 |
| SourceDiskCategory |
string |
The category of the disk. Valid values:
|
cloud_efficiency |
| SnapshotName |
string |
The name of the snapshot. This parameter is returned only if a name was specified when the snapshot was created. |
testSnapshotName |
| Description |
string |
The description. |
testDescription |
| EnsRegionId |
string |
The ID of the Edge Node Service (ENS) node. |
cn-beijing-15 |
| SourceSnapshotId |
string |
The ID of the source snapshot. |
s-bpdfer893jfkdqe**** |
| SourceEnsRegionId |
string |
The ID of the source ENS node. |
cn-hangzhou-27 |
| SnapshotType |
string |
||
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries returned on each page. |
10 |
| TotalCount |
integer |
The total number of snapshots. |
1 |
| RequestId |
string |
The request ID. |
9635ED2E-3103-1606-84D4-9F8E816B19F9 |
Examples
Success response
JSON format
{
"Snapshots": [
{
"SnapshotId": "s-bp67acfmxazb4p****",
"CreationTime": "2020-08-20 14:52:28",
"Status": "available",
"Size": "40",
"SourceDiskId": "d-bp67acfmxazb4ph****",
"SourceDiskType": "1",
"SourceDiskCategory": "cloud_efficiency",
"SnapshotName": "testSnapshotName",
"Description": "testDescription",
"EnsRegionId": "cn-beijing-15",
"SourceSnapshotId": "s-bpdfer893jfkdqe****",
"SourceEnsRegionId": "cn-hangzhou-27",
"SnapshotType": ""
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"RequestId": "9635ED2E-3103-1606-84D4-9F8E816B19F9"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | InstanceIdNotFound | The input parameter instancdId that is not found. | The specified instance ID does not exist. |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.