confluent kafka acl create

説明

Kafka ACL を作成します。

confluent kafka acl create [flags]

フラグ

    --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")

グローバルフラグ

-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 回のコマンドで、clusterconsumer-grouptopictransactional-id のフラグのいずれか 1 つのみを指定できます。たとえば、コンシューマーがトピックを読み取るために、consumer-group リソースと topic リソースの両方に対して 2 つのコマンドを別々に発行して、READDESCRIBE を付与する必要があります。

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 '*'

関連情報