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.
-
Combination 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.
Note
This operation supports only CPFS file systems (with ID prefixes cpfs-* or bmcpfs-*). General-purpose NAS and Extreme NAS file systems are not supported. |
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, use NextToken to initiate a new request to retrieve the content after the truncation point. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
The number of results for each query. Valid values: 10 to 100. Default value: 20. |
20 |
| OrderByField |
string |
No |
The field used for sorting.
Valid values:
|
FileCountLimit |
| SortOrder |
string |
No |
The sort order.
Note
This field 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, use NextToken to initiate a new request to retrieve the content after the truncation point. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
FileSystemId
deprecated
|
string |
The file system ID.
|
bmcpfs-290w65p03ok64ya**** |
| Entries |
object |
||
| Entrie |
array<object> |
The collection of fileset information. |
|
|
array<object> |
The file information collection. |
||
| Description |
string |
The description of the fileset. |
test |
| FileSystemPath |
string |
The path of the fileset. |
pathtoroot/fset |
| FsetId |
string |
Fileset ID。 |
fset-1902718ea0ae**** |
| Status |
string |
The status of the fileset. Valid values:
|
CREATED |
| CreateTime |
string |
The time when the fileset was created. The time follows the ISO 8601 standard in the format: |
2021-09-30T10:08:08Z |
| UpdateTime |
string |
The time when the fileset was last updated. The time follows the ISO 8601 standard in the format: yyyy-MM-ddTHH:mm:ssZ. |
2021-09-30T10:08:08Z |
| DeletionProtection |
boolean |
The release protection property of the instance. Specifies whether the instance can be released from the console or by calling the DeleteFileset operation.
Note
This property only restricts manual release operations and does not apply to system-initiated release operations. |
true |
| FileCountUsage |
integer |
The file count usage. Note
Only CPFS for Lingjun 2.7.0 and later support this parameter. |
1024 |
| SpaceUsage |
integer |
The capacity usage. Unit: bytes. Note
Only CPFS for Lingjun 2.7.0 and later support this parameter. |
1024 |
| Quota |
object |
The quota information. Note
Only CPFS for Lingjun 2.7.0 and later support this parameter. |
|
| SizeLimit |
integer |
The quota capacity limit. Unit: bytes.
|
10737418240 |
| FileCountLimit |
integer |
The quota file count limit. Valid values:
|
10000 |
| FileSystemId |
string |
The file system ID.
|
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. | The FileSystemId parameter is not specified. |
| 400 | InvalidParameter.SortOrder | Invalid sort order. | Parameter SortOrder error. |
| 400 | InvalidParameter.SortOrderField | Invalid sort order field. | Parameter SortOrderField error. |
| 400 | InvalidFilesystemType.NotSupport | The API operation does not support the file system type. | The API operation does not support the file system type. |
| 403 | OperationDenied.FilesetNotSupported | The operation is not supported. | The file system does not support Fileset. |
| 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. | The specified Filter.N.Key parameter is invalid. |
| 404 | InvalidFilterValue | The specified Filter.N.Value is invalid. | The specified Filter.N.Value parameter is invalid. |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | The specified MaxResults is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.