tencent cloud

APIs

DescribeCfsSnapshots

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-30 15:19:40

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.

3. Output Parameters

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.

4. Example

Example1 Querying a Snapshot

Input Example

POST / HTTP/1.1
Host: cfs.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCfsSnapshots
<Common request parameters>

{
    "FileSystemId": "cfs-12345"
}

Output Example

{
    "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
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

Ajuda e Suporte

Esta página foi útil?

comentários