Required. The parent cluster in which to create the acl. Structured like projects/{project}/locations/{location}/clusters/{cluster}.
Query parameters
Parameters
aclId
string
Required. The ID to use for the acl, which will become the final component of the acl's name. The structure of aclId defines the Resource Pattern (resourceType, resourceName, patternType) of the acl. aclId is structured like one of the following:
For acls on the cluster: cluster
For acls on a single resource within the cluster: topic/{resourceName}consumerGroup/{resourceName}transactionalId/{resourceName}
For acls on all resources that match a prefix: topicPrefixed/{resourceName}consumerGroupPrefixed/{resourceName}transactionalIdPrefixed/{resourceName}
For acls on all resources of a given type (i.e. the wildcard literal "*"): allTopics (represents topic/*) allConsumerGroups (represents consumerGroup/*) allTransactionalIds (represents transactionalId/*)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-13 UTC."],[],[],null,["# Method: projects.locations.clusters.acls.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new acl in the given project, location, and cluster.\n\n### HTTP request\n\n`POST https://managedkafka.googleapis.com/v1/{parent=projects/*/locations/*/clusters/*}/acls`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Acl](/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls#Acl).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Acl](/managed-service-for-apache-kafka/docs/reference/rest/v1/projects.locations.clusters.acls#Acl).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]