Cloud

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.

Usage

rpk cluster quotas import [flags]

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

--from

string

Either the quotas or a path to a file containing the quotas to import; check help text for more information.

--no-confirm

bool

Disable confirmation prompt.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.