Skip to main content

avn service acl

Full list of commands for avn service acl.

Manage Apache Kafka® access control lists

Commands for managing Aiven for Apache Kafka® access control lists via avn commands.

avn service acl-add

Adds an Aiven for Apache Kafka® ACL entry.

ParameterInformation
service_nameThe name of the service
--permissionThe permission type: possible values are read, write or readwrite
--topicThe topic name pattern: accepts * and ? as wildcard characters
--usernameThe username pattern: accepts * and ? as wildcard characters

Example: Add an ACLs for users with username ending with userA to readwrite on topics having name starting with topic2020 in the service kafka-doc.

avn service acl-add kafka-doc --username *userA --permission readwrite --topic topic2020*

avn service acl-delete

Deletes an Aiven for Apache Kafka® ACL entry.

ParameterInformation
service_nameThe name of the service
acl_idThe id of the ACL to delete

Example: Delete the ACLs with id acl3604f96c74a on the Aiven for Apache Kafka instance named kafka-doc.

avn service acl-delete kafka-doc acl3604f96c74a

avn service acl-list

Lists Aiven for Apache Kafka® ACL entries.

ParameterInformation
service_nameThe name of the service

Example: List the ACLs defined for a service named kafka-doc.

avn service acl-list kafka-doc

An example of account service acl-list output:

ID              USERNAME  TOPIC      PERMISSION
============== ======== ========= ==========
default * * admin
acl3604f96c74a Jon orders readwrite
acl3604fa706cb Frida invoices* write