confluent kafka acl create¶
フラグ¶
--allow Access to the resource is allowed.
--cluster-scope Modify ACLs for the cluster.
--consumer-group string Modify ACLs for the specified consumer group resource.
--deny Access to the resource is denied.
--operation stringArray REQUIRED: The ACL Operation: (alter, alter-configs, cluster-action, create, delete,
describe, describe-configs, idempotent-write, read, write).
Note: This flag may be specified more than once.
--prefix When this flag is set, the specified resource name is interpreted as
a prefix.
--service-account string REQUIRED: The service account ID.
--topic string Modify ACLs for the specified topic resource.
--transactional-id string Modify ACLs for the specified TransactionalID resource.
--cluster string Kafka cluster ID.
--context string CLI context name.
--environment string Environment ID.
-o, --output string Specify the output format as "human", "json", or "yaml". (default "human")
--url string Base URL of REST Proxy Endpoint of Kafka Cluster (include /kafka for embedded Rest Proxy). Must set flag or CONFLUENT_REST_URL.
--ca-cert-path string Path to a PEM-encoded CA to verify the Confluent REST Proxy.
--client-cert-path string Path to client cert to be verified by Confluent REST Proxy, include for mTLS authentication.
--client-key-path string Path to client private key, include for mTLS authentication.
--no-auth Include if requests should be made without authentication headers, and user will not be prompted for credentials.
--prompt Bypass use of available login credentials and prompt for Kafka Rest credentials.
--allow ACL permission to allow access.
--cluster-scope Set the cluster resource. With this option the ACL grants
access to the provided operations on the Kafka cluster itself.
--consumer-group string Set the Consumer Group resource.
--deny ACL permission to restrict access to resource.
--host string Set host for access. Only IP addresses are supported. (default "*")
--operation string REQUIRED: Set ACL Operation to: (all, alter, alter-configs, cluster-action, create, delete, describe, describe-configs, idempotent-write, read, write).
--prefix Set to match all resource names prefixed with this value.
--principal string REQUIRED: Principal for this operation with User: or Group: prefix.
--topic string Set the topic resource. With this option the ACL grants the provided
operations on the topics that start with that prefix, depending on whether
the --prefix option was also passed.
--transactional-id string Set the TransactionalID resource.
--context string CLI context name.
-o, --output string Specify the output format as "human", "json", or "yaml". (default "human")
グローバルフラグ¶
-h, --help Show help for this command.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
例¶
1 回のコマンドで、cluster
、consumer-group
、topic
、transactional-id
のフラグのいずれか 1 つのみを指定できます。たとえば、コンシューマーがトピックを読み取るために、consumer-group
リソースと topic
リソースの両方に対して 2 つのコマンドを別々に発行して、READ
と DESCRIBE
を付与する必要があります。
confluent kafka acl create --allow --service-account sa-55555 --operation READ --operation DESCRIBE --consumer-group java_example_group_1
confluent kafka acl create --allow --service-account sa-55555 --operation READ --operation DESCRIBE --topic '*'
1 回のコマンドで、cluster-scope
、consumer-group
、topic
、transactional-id
のフラグのいずれか 1 つのみを指定できます。たとえば、コンシューマーがトピックを読み取るために、consumer-group
リソースと topic
リソースの両方に対して 2 つのコマンドを別々に発行して、READ
と DESCRIBE
を付与する必要があります。
confluent kafka acl create --allow --principal User:Jane --operation READ --operation DESCRIBE --consumer-group java_example_group_1
confluent kafka acl create --allow --Group:Finance --operation READ --operation DESCRIBE --topic '*'
関連情報¶
- confluent kafka acl - Kafka ACL を管理します。