KV サービスのアカウントの使用量情報と、すべての名前空間のリストを取得します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
リクエストパラメーターは必要ありません。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Status |
string |
アカウントのステータス。
|
online |
| RequestId |
string |
リクエスト ID。 |
EEEBE525-F576-1196-8DAF-2D70CA3F4D2F |
| NamespaceUsed |
integer |
アカウント用に作成された名前空間の数。 |
1 |
| NamespaceQuota |
integer |
アカウントに対してリクエストできる KV ストレージスペースの数に関するクォータ。 |
10 |
| CapacityString |
string |
アカウントのすべての名前空間の合計利用可能容量。 |
1 GB |
| CapacityUsedString |
string |
アカウントのすべての名前空間の合計使用済み容量。 |
100 MB |
| Capacity |
integer |
アカウントのすべての名前空間の合計利用可能容量 (バイト単位)。 |
1073741824 |
| CapacityUsed |
integer |
アカウントのすべての名前空間の合計使用済み容量 (バイト単位)。 |
10048576 |
| NamespaceList |
array<object> |
アカウントの名前空間のリスト。 |
|
|
object |
|||
| Status |
string |
名前空間のステータス。有効な値:
|
online |
| Namespace |
string |
名前空間の名前。 |
test_namespace |
| NamespaceId |
string |
名前空間の ID です。 |
643355322374688768 |
| Description |
string |
名前空間の説明。 |
the first namespace |
| Capacity |
integer |
名前空間の利用可能容量 (バイト単位)。 |
1073741824 |
| CapacityUsed |
integer |
名前空間の使用済み容量 (バイト単位)。 |
100048576 |
| CapacityString |
string |
名前空間の利用可能容量。 |
1 GB |
| CapacityUsedString |
string |
名前空間の使用済み容量。 |
100 MB |
例
成功レスポンス
JSONJSON
{
"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"
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。