Queries the information about created filesets.
Operation description
- Only Cloud Parallel File Storage (CPFS) V2.2.0 and CPFS for Lingjun V2.7.0 and later support this operation. You can view the version information on the file system details page in the console.
- In Filters, FsetIds supports exact match only. FileSystemPath and Description support fuzzy match.
- Combined query is supported.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| nas:DescribeFilesets | list | *FileSystem acs:nas:{#regionId}:{#accountId}:filesystem/{#FileSystemId} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| FileSystemId | string | Yes | The ID of the file system.
| bmcpfs-290w65p03ok64ya**** |
| Filters | array<object> | No | The filter that is used to query filesets. | |
| object | No | |||
| Key | string | No | The filter name. Valid values:
Note
Only CPFS for LINGJUN V2.7.0 and later support the QuotaExists parameter.
| FsetIds |
| Value | string | No | The filter value. This parameter does not support wildcards.
| fset-1902718ea0ae****,fset-3212718ea0ae**** |
| NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. | TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults | long | No | The number of results for each query. Valid values: 10 to 100. Default value: 20. | 20 |
| OrderByField | string | No | The condition by which the results are sorted. Valid values:
| FileCountLimit |
| SortOrder | string | No | The order in which you want to sort the results. Valid values:
Note
This parameter takes effect only if you specify the OrderByField parameter.
| asc |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****",
"NextToken": "TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0=",
"FileSystemId": "bmcpfs-290w65p03ok64ya****",
"Entries": {
"Entrie": [
{
"Description": "test",
"FileSystemPath": "pathtoroot/fset",
"FsetId": "fset-1902718ea0ae****",
"Status": "CREATED",
"CreateTime": "2021-09-30T10:08:08Z",
"UpdateTime": "2021-09-30T10:08:08Z",
"DeletionProtection": true,
"FileCountUsage": 1024,
"SpaceUsage": 1024,
"Quota": {
"SizeLimit": 10737418240,
"FileCountLimit": 10000
},
"FileSystemId": "bmcpfs-290w65p03ok64ya****"
}
]
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | The parameter contains illegal characters. |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | - |
| 400 | InvalidParameter.SortOrder | Invalid sort order. | Parameter SortOrder error. |
| 400 | InvalidParameter.SortOrderField | Invalid sort order field. | Parameter SortOrderField error. |
| 403 | OperationDenied.FilesetNotSupported | The operation is not supported. | - |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | InvalidFilterParam | The specified Filter.N.Key is invalid. | - |
| 404 | InvalidFilterValue | The specified Filter.N.Value is invalid. | - |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | - |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-10-24 | The Error code has changed. The response structure of the API has changed | View Change Details |
| 2024-05-31 | The Error code has changed. The response structure of the API has changed | View Change Details |
