Domain name for API request: cfs.intl.tencentcloudapi.com.
This API is used to query the list of snapshots of a file system.
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: DescribeCfsSnapshots. |
| Version | Yes | String | Common Params. The value used for this API: 2019-07-19. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| FileSystemId | No | String | File system ID, which can be obtained through DescribeCfsFileSystems. |
| SnapshotId | No | String | Snapshot ID |
| Offset | No | Integer | Pagination offset. Default value: 0. |
| Limit | No | Integer | Page size. Default value: 20. |
| Filters.N | No | Array of Filter | Filter criteria. SnapshotId - Array of String - optional - (Filter criteria) Filters by snapshot ID. SnapshotName - Array of String - optional - (Filter criteria) Filters by snapshot name. FileSystemId - Array of String - optional - (Filter criteria) Filters by file system ID. FsName - Array of String - optional - (Filter criteria) Filters by file system name. Status - Array of String - optional - (Filter criteria) Filters by snapshot status. Status categories: creating: Creating | available: Running | deleting: Deleting | rollbacking_new: Creating a new file system from the snapshot | create-failed: Failed to create. tag-key - Array of String - optional - (Filter criteria) Filters by tag key. tag:tag-key - Array of String - optional - (Filter criteria) Filters by tag key-value pair. Replace tag-key with the actual tag key. |
| OrderField | No | String | Sort by creation time. |
| Order | No | String | Sort order: ascending or descending. |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number |
| Snapshots | Array of SnapshotInfo | Snapshot information description |
| TotalSize | Integer | Snapshot list and summary |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: cfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCfsSnapshots
<Common request parameters>
{
"FileSystemId": "cfs-12345"
}
{
"Response": {
"RequestId": "dd01b47d-2b57-4721-a237-1bdf59eac8b4",
"Snapshots": [
{
"AliveDay": 0,
"AppId": 1300275735,
"CreationTime": "2024-09-27 16:03:06",
"DeleteTime": "0",
"FileSystemId": "cfs-12345",
"FsName": "aileen-api-charge",
"Percent": 0,
"RegionName": "ap-guangzhou",
"Size": 0,
"SnapshotId": "snapcfs-5v2hgj3p",
"SnapshotName": "heihei",
"SnapshotTime": "2024-09-27 16:03:06",
"SnapshotType": "Standard",
"Status": "creating",
"Tags": []
}
],
"TotalCount": 1,
"TotalSize": 0
}
}
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 |
|---|---|
| AuthFailure.UnauthorizedOperation | Request unauthorized. |
| InternalError | Internal error. |
| InvalidParameter | Invalid parameter. |
| InvalidParameterValue.InvalidFileSystemId | FileSystemId is invalid. |
| ResourceNotFound.SnapshotNotFound | The snapshot ID does not exist. |
| UnsupportedOperation.OutOfService | Your account is in arrears. Please top up and try again. |
| UnsupportedOperation.UnverifiedUser | Unverified user. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários