Queries the directory quotas of a file system.
Operation description
Only General-purpose NAS file systems support the directory quota feature.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FileSystemId | string | Yes | The ID of the file system. | 1ca404**** |
Path | string | No | The absolute path of a directory. If you do not specify this parameter, all directories for which quotas are created are returned. | /data/sub1 |
PageSize | integer | No | The number of entries per page. Default value: 10. Valid values: 1 to 100. | 1 |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"DirQuotaInfos": [
{
"Status": "Normal",
"Path": "/data/sub1",
"DirInode": "1123",
"UserQuotaInfos": [
{
"FileCountReal": 5100,
"UserType": "Uid",
"FileCountLimit": 10000,
"UserId": "500",
"SizeLimit": 1024,
"QuotaType": "Accounting",
"SizeReal": 800
}
]
}
],
"RequestId": "5BC5CB97-9F28-42FE-84A4-0CD0DF42****",
"PageSize": 1,
"PageNumber": 1
}
Error codes
For a list of error codes, visit the Service error codes.