Queries snapshots.
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 query the node ID by calling the DescribeEnsRegions operation. |
cn-hangzhou |
| DiskId |
string |
No |
The ID of the disk. |
d-bp67acfmxazb4p**** |
| SnapshotId |
string |
No |
The ID of the snapshot. The value can be a JSON array that consists of up to 100 snapshot IDs. Separate the snapshot IDs with commas (,). |
sp-bp67acfmxazb4p**** |
| EnsRegionIds |
string |
No |
The node information. |
["cn-suzhou-telecom","cn-chengdu-telecom"] |
| SnapshotName |
string |
No |
The name of the snapshot. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with |
testSnapshotName |
| InstanceId |
string |
No |
The ID of the instance. |
i-bp67acfmxazb4p**** |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Snapshots |
array<object> |
The information about the snapshots. |
|
|
object |
|||
| SnapshotId |
string |
The ID of the snapshot. |
s-bp67acfmxazb4p**** |
| CreationTime |
string |
The creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2020-08-20 14:52:28 |
| Status |
string |
The status of the snapshot. Valid value:
|
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 for which the snapshot was created is released. |
d-bp67acfmxazb4ph**** |
| SourceDiskType |
string |
The type of the disk. Valid value:
|
1 |
| SourceDiskCategory |
string |
The type of the disk. Valid value:
|
cloud_efficiency |
| SnapshotName |
string |
The name of the snapshot. This parameter is returned only if a snapshot name was specified when the snapshot was created. |
testSnapshotName |
| Description |
string |
The description of the snapshot. |
testDescription |
| EnsRegionId |
string |
The ID of the edge node. |
cn-beijing-15 |
| SourceSnapshotId |
string |
The ID of the source snapshot. |
s-bpdfer893jfkdqe**** |
| SourceEnsRegionId |
string |
The ID of the source edge node. |
cn-hangzhou-27 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries per 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"
}
],
"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.