rpk cluster quotas import
Use this command to import client quotas in the format produced by rpk cluster quotas describe --format json/yaml.
The schema of the import string matches the schema from rpk cluster quotas describe --format help:
-
YAML
-
JSON
quotas:
- entity:
- name: string
- type: string
values:
- key: string
- values: string
{
"quotas": [
{
"entity": [
{
"name": "string",
"type": "string"
}
],
"values": [
{
"key": "string",
"values": "string"
}
]
}
]
}
Use the --no-confirm flag to avoid the confirmation prompt.
Examples
This section provides examples of how to use rpk cluster quotas import.
Import client quotas from a file:
rpk cluster quotas import --from /path/to/file
Import client quotas from a string:
rpk cluster quotas import --from '{`quotas`:...}'
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Either the quotas or a path to a file containing the quotas to import; check help text for more information. |
|
bool |
Disable confirmation prompt. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |