Skip to main content

acls

Operations on a acls resource.

Overview

Nameacls
TypeResource
Iddatabricks_workspace.secrets.acls

Fields

NameDatatype
permissionstring
principalstring

Methods

NameAccessible byRequired ParamsDescription
getaclSELECTprincipal, scope, deployment_nameGets the details about the given ACL, such as the group and permission. Users must have the
listaclsSELECTscope, deployment_nameList the ACLs for a given secret scope. Users must have the
deleteaclDELETEdeployment_nameDeletes the given ACL on the given scope.
putaclREPLACEdeployment_nameCreates or overwrites the Access Control List (ACL) associated with the given principal (user or group) on the specified scope point.

SELECT examples

SELECT
permission,
principal
FROM databricks_workspace.secrets.acls
WHERE scope = '{{ scope }}' AND
deployment_name = '{{ deployment_name }}';

REPLACE example

Replaces a acls resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.secrets.acls
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a acls resource.

/*+ delete */
DELETE FROM databricks_workspace.secrets.acls
WHERE deployment_name = '{{ deployment_name }}';