Domain name for API request: ecm.tencentcloudapi.com.
This API is used to query the list of snapshots.
AND
. For more information on filters, see Filter
.Limit
and is 20 by default.A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeSnapshots. |
Version | Yes | String | Common Params. The value used for this API: 2019-07-19. |
Region | No | String | Common Params. This parameter is not required for this API. |
SnapshotIds.N | No | Array of String | List of IDs of the snapshots to be queried. SnapshotIds and Filters cannot be specified at the same time. |
Filters.N | No | Array of Filter | Filter. SnapshotIds and Filters cannot be specified at the same time.snap-11112222 .snapshot-type .(SHARED_SNAPSHOT: shared snapshot | PRIVATE_SNAPSHOT: private snapshot.) |
Limit | No | Integer | Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit , see the relevant section of the API Overview. |
OrderField | No | String | Field by which snapshots are sorted. Valid values: Snapshots are sorted by creation time by default. |
Offset | No | Integer | Offset. Default value: 0. For more information on Offset , see the relevant section of the API Overview. |
Order | No | String | Sorting order of cloud disks. Valid values: |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of snapshots. |
SnapshotSet | Array of Snapshot | List of snapshot details. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
NORMAL
status in Guangzhou Zone 2https://ecm.tencentcloudapi.com/?Action=DescribeSnapshots
&Filters.0.Name=snapshot-state
&Filters.0.Values.0=NORMAL
&Filters.1.Name=zone
&Filters.1.Values.0=ap-guangzhou-2
&<Common request parameters>
{
"Response": {
"TotalCount": 2,
"RequestId": "4ab150b9-538d-48fb-8821-7fa185f1d07c",
"SnapshotSet": [
{
"Placement": {
"ProjectId": 0,
"Zone": "ap-guangzhou-2"
},
"TimeStartShare": "2020-09-22",
"CopyFromRemote": false,
"IsPermanent": false,
"DiskUsage": "DATA_DISK",
"DeadlineTime": "2019-07-15 00:00:00",
"Percent": 100,
"SnapshotId": "snap-lfo7xxxx",
"ShareReference": 0,
"SnapshotType": "PRIVATE_SNAPSHOT",
"DiskSize": 10,
"DiskId": "disk-aq3k1jn0",
"SnapshotName": "auto_disk-aq3k1jn0_20190708_00",
"Images": [],
"CopyingToRegions": [],
"Encrypt": false,
"CreateTime": "2019-07-08 00:03:13",
"ImageCount": 0,
"SnapshotState": "NORMAL"
},
{
"Placement": {
"ProjectId": 0,
"Zone": "ap-guangzhou-2"
},
"TimeStartShare": "2020-09-22",
"CopyFromRemote": false,
"IsPermanent": false,
"DiskUsage": "DATA_DISK",
"DeadlineTime": "2019-07-15 00:00:00",
"Percent": 100,
"SnapshotId": "snap-jt5nxxxx",
"ShareReference": 0,
"SnapshotType": "PRIVATE_SNAPSHOT",
"DiskSize": 10,
"DiskId": "disk-38hlz2p0",
"SnapshotName": "auto_disk-38hlz2p0_20190708_00",
"Images": [],
"CopyingToRegions": [],
"Encrypt": false,
"CreateTime": "2019-07-08 00:03:10",
"ImageCount": 0,
"SnapshotState": "NORMAL"
}
]
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.OperationNotAllow | The current operation is not allowed. |
InvalidParameterValue | The parameter value is incorrect. |
InvalidParameterValue.InvalidFilter | The filter is invalid. |
MissingParameter | The parameter is missing. |
Was this page helpful?