confluent iam rbac role-binding list¶
フラグ¶
--principal string Principal whose role bindings should be listed.
--current-user Show role bindings belonging to current user.
--role string List role bindings under a specific role given to a principal. Or if no principal is specified, list principals with the role.
--cloud-cluster string Cloud cluster ID for scope of role binding listings.
--environment string Environment ID for scope of role binding listings.
--current-env Use current environment ID for scope.
-o, --output string Specify the output format as "human", "json", or "yaml". (default "human")
--principal string Principal whose role bindings should be listed.
--current-user Show role bindings belonging to current user.
--role string List role bindings under a specific role given to a principal. Or if no principal is specified, list principals with the role.
--resource string If specified with a role and no principals, list principals with role bindings to the role for this qualified resource.
--kafka-cluster-id string Kafka cluster ID for scope of role binding listings.
--schema-registry-cluster-id string Schema Registry cluster ID for scope of role binding listings.
--ksql-cluster-id string ksqlDB cluster ID for scope of role binding listings.
--connect-cluster-id string Kafka Connect cluster ID for scope of role binding listings.
--cluster-name string Cluster name to uniquely identify the cluster for role binding listings.
--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).
例¶
現在のユーザーのロールバインディングをリスト表示するには、次のようにします。
confluent iam rbac role-binding list --current-user
特定のプリンシパルの ロールバインディングをリスト表示するには、次のようにします。
confluent iam rbac role-binding list --principal User:frodo
特定のプリンシパルの ロールバインディングを、特定のロールにフィルター処理してリストを表示するには、次のようにします。
confluent iam rbac role-binding list --principal User:frodo --role CloudClusterAdmin --environment env-123 --cloud-cluster lkc-1111aaa
特定のロールに結合されたプリンシパルのリストを表示するには、次のようにします。
confluent iam rbac role-binding list --role CloudClusterAdmin --current-env --cloud-cluster lkc-1111aaa
--resource
フラグは、--principal
を指定せずに --role
を指定する場合にのみ使用します。--principal
を指定する場合は、--resource
フラグが無視されます。特定されたリソースの特定のロールの ロールバインディングをリスト表示するには、次のようにします。
confluent iam rbac role-binding list --kafka-cluster-id CID --role DeveloperRead --resource Topic
特定のプリンシパルの ロールバインディングをリスト表示するには、次のようにします。
confluent iam rbac role-binding list --kafka-cluster-id $CID --principal User:frodo
特定のプリンシパルの ロールバインディングを、特定のロールにフィルター処理してリストを表示するには、次のようにします。
confluent iam rbac role-binding list --kafka-cluster-id $CID --principal User:frodo --role DeveloperRead
特定のロールに結合されたプリンシパルのリストを表示するには、次のようにします。
confluent iam rbac role-binding list --kafka-cluster-id $CID --role DeveloperWrite
特定のロールを持ち、特定のリソースに結合されたプリンシパルのリストを表示するには、次のようにします。
confluent iam rbac role-binding list --kafka-cluster-id $CID --role DeveloperWrite --resource Topic:shire-parties
関連情報¶
- confluent iam rbac role-binding - RBAC および IAM のロールバインディングを管理します。