tencent cloud

Cloud File Storage

DescribeCfsFileSystems

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-26 16:30:14

1. API Description

Domain name for API request: cfs.intl.tencentcloudapi.com.

This API is used to query file systems.

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: DescribeCfsFileSystems.
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.

VpcId No String

Virtual Private Cloud (VPC) ID.

SubnetId No String

Subnet ID.

Offset No Integer

Offset for pagination. Default value: 0.

Limit No Integer

Limit for page size. Default value: 10.

CreationToken No String

User-defined name.

Filters.N No Array of Filter

Filter conditions.

  • Protocol - Array of String - optional - (Filter condition) Filters by protocol. (NFS | CIFS | TURBO)


  • StorageType - Array of String - optional - (Filter condition) Filters by storage type. (SD | HP | TB | TP | THP)


  • LifeCycleState - Array of String - optional - (Filter condition) Filters by lifecycle state. (creating | create_failed | available | deleting | delete_failed | upgrading | unserviced | expanding)


  • Zone - Array of String - optional - (Filter condition) Filters by AZ. (For example: ap-guangzhou-3)


  • IpAddress - Array of String - optional - (Filter condition) Filters by export point IP address. (For example: 10.0.0.3)


  • PGroupId - Array of String - optional - (Filter condition) Filters by permission group ID. (For example: pgroup-xxxxxrxt)


  • PGroupName - Array of String - optional - (Filter condition) Filters by permission group name. (For example: default permission group)


  • Scenario- Array of String - optional - (Filter condition) Filters by permission group name. (For example: AgentSandbox)
  • Tags.N No Array of TagInfo

    Tag.

    3. Output Parameters

    Parameter Name Type Description
    FileSystems Array of FileSystemInfo

    File system information

    TotalCount Integer

    Total number of file systems

    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 Query File System

    Query File System

    Input Example

    POST / HTTP/1.1
    Host: cfs.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeCfsFileSystems
    <Common request parameters>
    
    {
        "FileSystemId": "cfs-318f2b7ba"
    }

    Output Example

    {
        "Response": {
            "FileSystems": [
                {
                    "AppId": 1300275735,
                    "AutoScaleUpRule": {
                        "ScaleThreshold": 80,
                        "TargetThreshold": 70,
                        "Status": "open"
                    },
                    "AutoSnapshotPolicyId": "",
                    "BandwidthLimit": 100,
                    "BandwidthResourcePkg": "",
                    "Capacity": 2097152,
                    "CreationTime": "2024-07-09 10:52:35",
                    "CreationToken": "denny-test-003",
                    "Encrypted": false,
                    "FileSystemId": "cfs-318f2b7ba",
                    "FsName": "denny-test-003",
                    "KmsKeyId": "",
                    "LifeCycleState": "available",
                    "PGroup": {
    "Name": "Default permission group"
                        "PGroupId": "pgroupbasic"
                    },
                    "Protocol": "NFS",
                    "SizeByte": 0,
                    "SizeLimit": 1000000,
                    "SnapStatus": "normal",
                    "StorageResourcePkg": "",
                    "StorageType": "SD",
                    "Tags": [],
                    "TieringDetail": {
                        "SecondaryTieringSizeInBytes": -1,
                        "TieringSizeInBytes": -1
                    },
                    "TieringState": "NotAvailable",
                    "Zone": "ap-guangzhou-2",
                    "ZoneId": 100002
                }
            ],
            "RequestId": "8edb5b83-6bd2-4f0a-8ee9-d8ee96fff8dc",
            "TotalCount": 1
        }
    }

    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.TokenFailure Authentication token expired.
    AuthFailure.UnauthorizedOperation Request unauthorized.
    InternalError Internal error.
    InternalError.GetAccountStatusFailed Failed to get the payment status of the user.
    InvalidParameter Invalid parameter.
    InvalidParameterValue.InvalidFileSystemId FileSystemId is invalid.
    InvalidParameterValue.MissingFileSystemIdOrRegion Either FileSystemId or Region must be selected.
    InvalidParameterValue.MissingFsParameter FileSystem is missing.
    InvalidParameterValue.TagKeyFilterLimitExceeded Invalid parameter value: the number of tag keys exceeds the upper limit (6).
    InvalidParameterValue.TagKeyLimitExceeded The length of the tag key exceeds the upper limit of 127 bytes.
    InvalidParameterValue.UnavailableRegion Services are unavailable in this AZ.
    UnsupportedOperation Unsupported operation.
    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