Queries the list of created filesets.
Operation description
-
Only CPFS 2.2.0 and later and CPFS for Lingjun 2.7.0 and later support filesets. You can view the version information on the file system details page in the console.
-
For filter keys (Filters), FsetIds requires an exact match, while FileSystemPath and Description support fuzzy match.
-
Combined queries are supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeFilesets |
list |
*FileSystem
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The file system ID.
|
bmcpfs-290w65p03ok64ya**** |
| Filters |
array<object> |
No |
The filter key information for the filesets to query. |
|
|
object |
No |
|||
| Key |
string |
No |
The name of the filter key. Valid values:
Note
Only CPFS for Lingjun 2.7.0 and later support filtering by the QuotaExists parameter. Valid values:
|
FsetIds |
| Value |
string |
No |
The value of the filter key. Wildcards are not supported for this parameter.
|
fset-1902718ea0ae**** |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. If the return results are truncated, you can use this token in the next request to retrieve the remaining results. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
The number of results per query. Valid values: 10 to 100. Default value: 20. |
20 |
| OrderByField |
string |
No |
The field by which to sort the results.
Valid values:
|
FileCountLimit |
| SortOrder |
string |
No |
The sort order. Valid values:
Note
This parameter takes effect only when the OrderByField parameter is specified. Valid values:
|
asc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. If the return results are truncated, you can use this token in the next request to retrieve the remaining results. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
FileSystemId
deprecated
|
string |
The file system ID.
|
bmcpfs-290w65p03ok64ya**** |
| Entries |
object |
||
| Entrie |
array<object> |
The collection of fileset information. |
|
|
array<object> |
The collection of file information. |
||
| Description |
string |
The fileset description. |
test |
| FileSystemPath |
string |
The fileset path. |
pathtoroot/fset |
| FsetId |
string |
The fileset ID. |
fset-1902718ea0ae**** |
| Status |
string |
The fileset status. Valid values:
|
CREATED |
| CreateTime |
string |
The time when the fileset was created. The time follows the ISO 8601 standard in the |
2021-09-30T10:08:08Z |
| UpdateTime |
string |
The time when the fileset was last updated. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. |
2021-09-30T10:08:08Z |
| DeletionProtection |
boolean |
Specifies whether to enable deletion protection to allow you to release the fileset by using the console or by calling the DeleteFileset operation. Valid values:
Note
This parameter can protect filesets only against manual releases, but not against automatic releases. |
true |
| FileCountUsage |
integer |
The usage of the file quantity. Note
Only CPFS for LINGJUN V2.7.0 and later support this parameter. |
1024 |
| SpaceUsage |
integer |
The capacity usage. Unit: bytes. Note
Only CPFS for LINGJUN V2.7.0 and later support this parameter. |
1024 |
| Quota |
object |
The quota information. Note
Only CPFS for Lingjun V2.7.0 and later support this parameter. |
|
| SizeLimit |
integer |
The capacity quota. Unit: bytes.
|
10737418240 |
| FileCountLimit |
integer |
The file quantity quota. Valid values:
|
10000 |
| FileSystemId |
string |
The ID of the file system.
|
bmcpfs-290w65p03ok64ya**** |
Examples
Success response
JSON format
{
"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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.