Mengkueri detail kuota untuk setiap direktori dalam sistem file.
Deskripsi operasi
Hanya sistem file NAS General-purpose yang menggunakan Protokol NFS yang mendukung fitur kuota direktori.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeDirQuotas |
list |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file. |
1ca404**** |
| Path |
string |
No |
Jalur mutlak direktori dalam sistem file. Jika parameter ini dikosongkan, semua direktori yang memiliki kuota yang dikonfigurasi dalam sistem file akan dikembalikan. |
/data/sub1 |
| PageSize |
integer |
No |
Jumlah direktori per halaman. Nilai default: 10. Nilai valid: 1 hingga 100. |
1 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total direktori. |
1 |
| DirQuotaInfos |
array<object> |
Kumpulan informasi kuota untuk setiap direktori. |
|
|
array<object> |
|||
| Status |
string |
Status statistik direktori. Selama inisialisasi, nilainya adalah Initializing. Ketika status normal, nilainya adalah Normal. |
Normal |
| Path |
string |
Jalur mutlak direktori dalam sistem file. |
/data/sub1 |
| DirInode |
string |
Nomor inode direktori. |
1123 |
| UserQuotaInfos |
array<object> |
Kumpulan informasi kuota untuk setiap pengguna. |
|
|
object |
|||
| FileCountReal |
integer |
The total number of files that a user has created in the directory. |
5100 |
| UserType |
string |
The type of user. Valid values: Uid, Gid, and AllUsers.
|
Uid |
| FileCountLimit |
integer |
The maximum number of files that a user can create in the directory. |
10000 |
| UserId |
string |
The ID of the user that you specify to create a quota for the directory. The value depends on the value of the UserType parameter. Valid values: Uid and Gid. |
500 |
| SizeLimit |
integer |
The maximum size of files that a user can create in the directory. Unit: GiB. |
1024 |
| QuotaType |
string |
The type of the quota. Valid values: Accounting and Enforcement. |
Accounting |
| SizeReal |
integer |
The total size of files that a user has created in the directory. Unit: GiB. |
800 |
| SizeRealInByte |
integer |
The total size of files that a user has created in the directory. Unit: bytes. |
858995833870 |
| RequestId |
string |
ID permintaan. |
5BC5CB97-9F28-42FE-84A4-0CD0DF42**** |
| PageSize |
integer |
Jumlah direktori per halaman. |
1 |
| PageNumber |
integer |
Nomor halaman. |
1 |
Contoh
Respons sukses
JSONformat
{
"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,
"SizeRealInByte": 858995833870
}
]
}
],
"RequestId": "5BC5CB97-9F28-42FE-84A4-0CD0DF42****",
"PageSize": 1,
"PageNumber": 1
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.