All Products
Search
Document Center

PolarDB:DescribePolarFsQuota

Last Updated:Jun 10, 2026

Mengambil semua aturan kuota untuk instans PolarFileSystem (PolarFS) tertentu.

Deskripsi operasi

Request

  • This operation queries all quota rules for a specific PolarFS instance. It supports wildcard matching with the QuotaNameMatch and PatternMatch parameters.

  • Paging is not yet available and will be released in a future kernel update.

  • The PolarFsInstanceId parameter is required to specify the PolarFS instance 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.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribePolarFsQuota

none

*全部资源

*

None None

Sintaks permintaan

POST  HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

PolarFsInstanceId

string

Yes

ID Instans PolarFS.

pfs-2ze0i74ka607*****

DBClusterId

string

No

ID Kluster.

Catatan

Untuk mencari ID Kluster untuk Kluster edisi enterprise, basic, atau danau data terpadu, panggil operasi DescribeDBClusters.

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

RegionId

string

No

ID Wilayah.

Catatan

Panggil operasi DescribeRegions untuk mencari ID semua Wilayah yang tersedia di akun Anda.

cn-beijing

Path

string

No

Jalur tujuan.

/data

QuotaType

string

No

Tipe Kuota yang akan dikueri.

quotaPolicy

Elemen respons

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID.

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

PolarFsInstanceId

string

The PolarFS 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 returned.

5

PageRecordCount

string

The number of entries returned on the current page.

5

PolicyItems

array<object>

The details of the rules.

object

The rule.

Id

integer

The rule ID.

73

Name

string

The rule name.

xxxxx

Description

string

The rule description.

NULL

Include

string

The glob pattern for paths to include.

  • The pattern must start with / and supports glob syntax, including *, ?, and **.

/a*

Exclude

string

The glob pattern of paths to exclude.

  • The pattern must start with / and supports glob syntax, including *, ?, and **.

NULL

SizeLimit

integer

The maximum total size of files in the directory. Unit: GB.

  • The value must be greater than or equal to 1.

1

FileCountLimit

integer

The maximum number of files in the directory.

77

AccessTTL

integer

The TTL of the access time. Unit: seconds.

7200

ChangeTTL

integer

The TTL of 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

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 total number of inodes.

100

UsedInodes

integer

The number of used inodes.

1

Path

string

The path of the directory.

/data

Contoh

Respons sukses

JSONformat

{
  "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
    }
  ],
  "QuotaItems": [
    {
      "Path": "/data",
      "Capacity": 1073741824,
      "UsedCapacity": 104857600,
      "Inodes": 100,
      "UsedInodes": 1
    }
  ],
  "Path": "/data"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.