Mengambil informasi penggunaan akun dalam layanan KV, termasuk daftar semua namespace.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetKvAccount |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
Status akun tersebut.
|
online |
| RequestId |
string |
ID permintaan. |
EEEBE525-F576-1196-8DAF-2D70CA3F4D2F |
| NamespaceUsed |
integer |
Jumlah namespace yang dibuat untuk akun tersebut. |
1 |
| NamespaceQuota |
integer |
Kuota jumlah ruang penyimpanan KV yang dapat Anda minta untuk akun tersebut. |
10 |
| CapacityString |
string |
Kapasitas total yang tersedia dari semua namespace untuk akun tersebut. |
1 GB |
| CapacityUsedString |
string |
Kapasitas total yang digunakan dari semua namespace untuk akun tersebut. |
100 MB |
| Capacity |
integer |
Kapasitas total yang tersedia dari semua namespace untuk akun tersebut, dalam byte. |
1073741824 |
| CapacityUsed |
integer |
Kapasitas total yang digunakan dari semua namespace untuk akun tersebut, dalam byte. |
10048576 |
| NamespaceList |
array<object> |
Daftar namespace untuk akun tersebut. |
|
|
object |
|||
| Status |
string |
Status namespace tersebut. Nilai yang valid:
|
online |
| Namespace |
string |
Nama namespace tersebut. |
test_namespace |
| NamespaceId |
string |
ID namespace tersebut. |
643355322374688768 |
| Description |
string |
Deskripsi namespace tersebut. |
the first namespace |
| Capacity |
integer |
Kapasitas yang tersedia dari namespace tersebut, dalam byte. |
1073741824 |
| CapacityUsed |
integer |
Kapasitas yang digunakan dari namespace tersebut, dalam byte. |
100048576 |
| CapacityString |
string |
Kapasitas yang tersedia dari namespace tersebut. |
1 GB |
| CapacityUsedString |
string |
Kapasitas yang digunakan dari namespace tersebut. |
100 MB |
Contoh
Respons sukses
JSONformat
{
"Status": "online",
"RequestId": "EEEBE525-F576-1196-8DAF-2D70CA3F4D2F",
"NamespaceUsed": 1,
"NamespaceQuota": 10,
"CapacityString": "1 GB",
"CapacityUsedString": "100 MB",
"Capacity": 1073741824,
"CapacityUsed": 10048576,
"NamespaceList": [
{
"Status": "online",
"Namespace": "test_namespace",
"NamespaceId": "643355322374688768",
"Description": "the first namespace",
"Capacity": 1073741824,
"CapacityUsed": 100048576,
"CapacityString": "1 GB",
"CapacityUsedString": "100 MB"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccount.Malformed | The specified account is invalid. | |
| 400 | InvalidNameSpace.Malformed | The specified namespace is invalid. | |
| 400 | InvalidKey.Malformed | The specified key is invalid. | |
| 400 | InvalidKey.ExceedsMaximum | The size of the key cannot exceed 512 bytes. | |
| 400 | InvalidValue.ExceedsMaximum | The size of the value cannot exceed 2,000,000 bytes. | |
| 403 | InvalidKey.ExceedsCapacity | The maximum capacity of a single namespace cannot exceed 1 GB. | |
| 403 | Unauthorized.InvalidParameters | The specified authentication parameters are invalid. | |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | |
| 404 | InvalidAccount.NotFound | The specified account does not exist. | |
| 404 | InvalidNameSpace.NotFound | The specified namespace does not exist. | |
| 404 | InvalidKey.NotFound | The specified key does not exist. | |
| 406 | InvalidNameSpace.Duplicate | The specified namespace already exists. | |
| 406 | InvalidNameSpace.QuotaFull | The maximum number of namespaces is exceeded. | |
| 429 | TooManyRequests | Too many requests are submitted. | |
| 429 | TooQuickRequests | Request for putting or deleting keys are frequently submitted. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.