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
QuotaNameMatchandPatternMatchparameters. -
Paging is not yet available and will be released in a future kernel update.
-
The
PolarFsInstanceIdparameter is required to specify the PolarFS instance to query. -
You can use optional parameters, such as
QuotaNameMatchandPatternMatch, 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
Test
RAM authorization
|
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.
|
/a* |
| Exclude |
string |
The glob pattern of paths to exclude.
|
NULL |
| SizeLimit |
integer |
The maximum total size of files in the directory. Unit: GB.
|
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:
|
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.