Skip to main content

acls_acl_entry

Creates, updates, deletes, gets or lists an acls_acl_entry resource.

Overview

Nameacls_acl_entry
TypeResource
Idgoogle.managedkafka.acls_acl_entry

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_acl_entryinsertprojectsId, locationsId, clustersId, aclsIdIncremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet.
remove_acl_entrydeleteprojectsId, locationsId, clustersId, aclsIdIncremental update: Removes an acl entry from an acl. Deletes the acl if its acl entries become empty (i.e. if the removed entry was the last one in the acl).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aclsIdstring
clustersIdstring
locationsIdstring
projectsIdstring

INSERT examples

Incremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet.

INSERT INTO google.managedkafka.acls_acl_entry (
data__principal,
data__permissionType,
data__operation,
data__host,
projectsId,
locationsId,
clustersId,
aclsId
)
SELECT
'{{ principal }}',
'{{ permissionType }}',
'{{ operation }}',
'{{ host }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ clustersId }}',
'{{ aclsId }}'
RETURNING
acl,
aclCreated
;

DELETE examples

Incremental update: Removes an acl entry from an acl. Deletes the acl if its acl entries become empty (i.e. if the removed entry was the last one in the acl).

DELETE FROM google.managedkafka.acls_acl_entry
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND clustersId = '{{ clustersId }}' --required
AND aclsId = '{{ aclsId }}' --required;