Queries all quota rules for a specified Polarlakebase instance.
Operation description
Request description
This API operation is used to query all quota rules under a specific Polarlakebase instance. It supports fuzzy matching through the
QuotaNameMatchandPatternMatchparameters.The pagination feature is not yet publicly available and will be enabled after the kernel is ready. Currently, there is no pagination limit on the returned results.
PolarFsInstanceIdis a required parameter used to specify the Polarlakebase instance to query.Optional parameters such as
QuotaNameMatchandPatternMatchcan be used to further filter the matching quota rules.The returned data includes but is not limited to the total number of quota rules, the number of rules on the current page, and specific rule details (such as rule ID, name, description, and capacity limit).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribePolarFsQuota |
none |
*LakeCache
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolarFsInstanceId |
string |
Yes |
The Polarlakebase instance ID. |
pfs-2ze0i74ka607***** |
| DBClusterId |
string |
No |
The cluster ID. Note
For Enterprise Edition, Basic Edition, and Data Lakehouse Edition: You can call the DescribeDBClusters operation to query the cluster ID. |
pc-************** |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to view all available regions under the current account, including region IDs. |
cn-beijing |
| Path |
string |
No |
The target path. |
/data |
| QuotaType |
string |
No |
The type of quota to query. Valid values:
|
quotaPolicy |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
2FED790E-FB61-4721-8C1C-07C627****** |
| PolarFsInstanceId |
string |
The Polarlakebase instance ID. |
pfs-2ze0i74ka607***** |
| PageSize |
string |
The number of entries per page. Valid values: 5 to 50. Default value: 10. |
10 |
| PageNumber |
string |
The page number. |
1 |
| TotalRecordCount |
string |
The total number of entries. |
5 |
| PageRecordCount |
string |
The number of entries on the current page. |
5 |
| PolicyItems |
array<object> |
The rule details. |
|
|
object |
The rule. |
||
| Id |
integer |
The rule ID. |
73 |
| Name |
string |
The rule name. |
File system quota rule |
| Description |
string |
The rule description. |
NULL |
| Include |
string |
The wildcard pattern for matching paths.
|
/a* |
| Exclude |
string |
The matching rules for excluding specific paths.
|
NULL |
| SizeLimit |
integer |
The total capacity limit for files in the directory. Unit: GB.
|
1 |
| FileCountLimit |
integer |
The limit on the number of files for users in the directory. |
77 |
| AccessTTL |
integer |
The time-to-live (TTL) corresponding to the access time. Unit: seconds. |
7200 |
| ChangeTTL |
integer |
The TTL corresponding to the change time. Unit: seconds. |
7200 |
| Priority |
integer |
The priority of the quota rule. |
1 |
| Enabled |
boolean |
Specifies whether the rule is enabled. Valid values:
|
false |
| QuotaItems |
array<object> |
The quota information. |
|
|
object |
The directory quota. |
||
| Path |
string |
The directory path. |
/data |
| Capacity |
integer |
The capacity. Unit: bytes. |
1073741824 |
| UsedCapacity |
integer |
The used capacity. Unit: bytes. |
104857600 |
| Inodes |
integer |
The file system inode quota. |
100 |
| UsedInodes |
integer |
The number of used inodes. |
1 |
| Path |
string |
The directory path. |
/data |
Examples
Success response
JSON format
{
"RequestId": "2FED790E-FB61-4721-8C1C-07C627******",
"PolarFsInstanceId": "pfs-2ze0i74ka607*****",
"PageSize": "10",
"PageNumber": "1",
"TotalRecordCount": "5",
"PageRecordCount": "5",
"PolicyItems": [
{
"Id": 73,
"Name": "File system quota rule",
"Description": "NULL",
"Include": "/a*",
"Exclude": "NULL",
"SizeLimit": 1,
"FileCountLimit": 77,
"AccessTTL": 7200,
"ChangeTTL": 7200,
"Priority": 1,
"Enabled": false
}
],
"QuotaItems": [
{
"Path": "/data",
"Capacity": 1073741824,
"UsedCapacity": 104857600,
"Inodes": 100,
"UsedInodes": 1
}
],
"Path": "/data"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | QuotaPolicyOperation.Failed | Failed to execute quota policy operation. | Reserved for actual quota rule execution failures. |
| 400 | PolarFsInstance.NotReady | PolarFS instance '{PolarFsInstanceId}' is not ready. Current status: {status}. Please wait and retry. | The instance is not ready (Creating / pod not ready). {PolarFsInstanceId} {status} |
| 400 | OperationDenied.InstanceTypeNotSupported | PolarFS instance '{PolarFsInstanceId}' of CreationCategory '{category}' does not support quota operations. | The instance type does not support quota operations (such as cold). {PolarFsInstanceId} {category} |
| 401 | OperationDenied.UnsupportedAccelerateType | The accelerate type is not support. | This API is not supported for the AccelerateType of the PolarFS instance (such as Alluxio). |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.