Skip to content

acl

Export resource acls to definitions (Kafka 0.11.0+).

Synopsis

kdef export acl [options]

Exports to stdout by default. Supply the --output-dir option to create definition files.

Examples

Export all resource acls to the directory "acls".

kdef export acl --output-dir "acls"

Export all topic acls to stdout.

kdef export acl --type topic --quiet

Export all resource acls starting with "myapp".

kdef export acl --match "myapp.*"

Options

  • --format / -f (string)

    Resource definition format. Must be either yaml or json. The default value is yaml.

  • --output-dir / -o (string)

    Output directory path for definition files. Non-existent directories will be created.

  • --overwrite / -w (bool)

    Overwrite existing files in output directory. The default value is false.

  • --match / -m (string)

    Regular expression matching resource names to include. The default value is .*.

  • --exclude / -e (string)

    Regular expression matching resource names to exclude. The default value is .^.

  • --type / -t (string)

    ACL resource type. Must be one of any, topic, group, cluster, transactional_id, delegation_token. The default value is any.

  • --auto-group / -g (bool)

    Combine acls into groups for easier management. The default value is true.

    See ACLEntryGroup for further details.

Global options

  • -no-color (bool)

    Disable colored output. The default value is false.

  • --quiet / -q (boolean)

    Enable quiet mode (output errors only). The default value is false.

  • --verbose / -v (boolean)

    Enable debug output. The default value is false.

  • --config-path / -p (string)

    Path to configuration file. Defaults to a file named config.yml in the current working directory.

  • --config-opt / -X ([]string)

    Option provided configuration (e.g. -X timeoutMs=6000). This is a repeatable option.