acls
Operations on a acls
resource.
Overview
Name | acls |
Type | Resource |
Id | databricks_workspace.secrets.acls |
Fields
Name | Datatype |
---|---|
permission | string |
principal | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getacl | SELECT | principal, scope, deployment_name | Gets the details about the given ACL, such as the group and permission. Users must have the |
listacls | SELECT | scope, deployment_name | List the ACLs for a given secret scope. Users must have the |
deleteacl | DELETE | deployment_name | Deletes the given ACL on the given scope. |
putacl | REPLACE | deployment_name | Creates or overwrites the Access Control List (ACL) associated with the given principal (user or group) on the specified scope point. |
SELECT
examples
- acls (listacls)
- acls (getacl)
SELECT
permission,
principal
FROM databricks_workspace.secrets.acls
WHERE scope = '{{ scope }}' AND
deployment_name = '{{ deployment_name }}';
SELECT
permission,
principal
FROM databricks_workspace.secrets.acls
WHERE principal = '{{ principal }}' AND
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 }}';