All Products
Search
Document Center

:DescribePolarFsQuota

Last Updated:Nov 20, 2025

Retrieves all quota rules for a specified PolarFileSystem (PolarFS) instance.

Operation description

Description

  • You can call this operation to query all quota rules for a specific PolarFS instance. This operation supports wildcard matching using the QuotaNameMatch and PatternMatch parameters.

  • The paging feature is not yet available. It will be released in a future kernel update. Therefore, the returned results are not paginated.

  • The PolarFsInstanceId parameter is required. You must use this parameter to specify the PolarFS instance that you want to query.

  • You can use optional parameters, such as QuotaNameMatch and PatternMatch, to filter quota rules.

  • The returned data includes the total number of quota rules, the number of rules on the current page, and details for each rule, such as the rule ID, name, description, and capacity limit.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

PolarFsInstanceId

string

Yes

The ID of the PolarFS instance.

pfs-2ze0i74ka607*****

DBClusterId

string

No

The cluster ID.

Note

For Enterprise, Basic, and Data Lakehouse Edition clusters, call the DescribeDBClusters operation to query the cluster ID.

pc-**************

RegionId

string

No

The region ID.

Note

Call the DescribeRegions operation to view information about all available regions for your account, including region IDs.

cn-beijing

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

2FED790E-FB61-4721-8C1C-07C627******

PolarFsInstanceId

string

The ID of the PolarFS instance.

pfs-2ze0i74ka607*****

PageSize

string

The number of records per page. Valid values: 5 to 50. Default value: 10.

10

PageNumber

string

The page number.

1

TotalRecordCount

string

The total number of records.

5

PageRecordCount

string

The number of records 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.

xxxxx

Description

string

The rule description.

NULL

Include

string

The wildcard pattern for matching paths.

  • A path pattern that starts with /. It supports glob syntax, including *, ?, and **.

/a*

Exclude

string

The matching rule to exclude specific paths.

  • A path pattern that starts with /. It supports glob syntax, including *, ?, and **.

NULL

SizeLimit

integer

The total capacity limit for files in the folder. Unit: GB.

  • Note: The value must be 1 GB or greater.

1

FileCountLimit

integer

The limit on the number of user files in the folder.

77

AccessTTL

integer

The TTL for the access time. Unit: seconds.

7200

ChangeTTL

integer

The TTL for the change time. Unit: seconds.

7200

Priority

integer

The priority of the quota rule.

1

Enabled

boolean

Indicates whether the rule is enabled. Valid values:

  • true: The rule takes effect immediately for new events. This is the default value.

  • false: The rule does not take effect for new events.

false

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": "xxxxx",
      "Description": "NULL",
      "Include": "/a*",
      "Exclude": "NULL",
      "SizeLimit": 1,
      "FileCountLimit": 77,
      "AccessTTL": 7200,
      "ChangeTTL": 7200,
      "Priority": 1,
      "Enabled": false
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.