This document describes how to view the details of a Managed Kafka ACL resource, including:
The ACL entries, which define the permissions that are in effect for the ACL's resource pattern.
The ETag used for concurrency control.
Required roles and permissions
To get the permission that
you need to view a Managed Kafka ACL,
ask your administrator to grant you the
Managed Kafka ACL Viewer (roles/managedkafka.aclViewer) IAM role on your project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
This predefined role contains the
managedkafka.acls.get
permission,
which is required to
view a Managed Kafka ACL.
You might also be able to get this permission with custom roles or other predefined roles.
View an ACL
gcloud
Run the
gcloud managed-kafka acls describe
command:
gcloud managed-kafka acls describe ACL_ID \
--cluster=CLUSTER_ID \
--location=LOCATION
Replace the following:
ACL_IDThe ID of the Managed Kafka ACL resource to view. For more information, see ACL ID.CLUSTER_IDThe ID of your Kafka cluster.LOCATION: The region of your Kafka cluster.
Sample command
Run the following command to display the properties of the specified Managed Service for Apache Kafka
ACL resource called test_ACL.
gcloud managed-kafka acls describe test_ACL \ --cluster=default-cluster \ --location=us-central1 \
Here is a sample output of the command. The output displays the ACL ID, the resource pattern it applies to, its current eTag to be used for updates, and the list of individual ACL entries
aclEntries:
- host: '*'
operation: ALL
permissionType: ALLOW
principal: User:admin@test-project.iam.gserviceaccount.com
etag: W/da909178
name: projects/test-project/locations/us-central1/clusters/default-cluster/acls/test_ACL
patternType: LITERAL
resourceName: default-cluster
resourceType: CLUSTER
The output of the describe command provides information about the
Managed Service for Apache Kafka ACL resource:
aclEntries: this is a list containing all the access control entries (permission rules) defined for this ACL. Each entry has the following fields:host: the client host for the ACL entry.operation: the Kafka operation to which this entry applies.permissionType: whether the access isALLOWorDENY.principal: the user or service account this entry is for.
etag: this is the entity tag for the ACL resource. It's used for optimistic concurrency control during subsequent updates.name: the unique identifier for the ACL resource. It follows the formatprojects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}.patternType: the type of resource pattern for this ACL, such asLITERAL.resourceName: the name of the Kafka resource to which this ACL applies.resourceType: the type of Kafka resource.