acls
Creates, updates, deletes, gets or lists an acls
resource.
Overview
Name | acls |
Type | Resource |
Id | databricks_workspace.secrets.acls |
Fields
The following fields are returned by SELECT
queries:
- listacls
- getacl
Name | Datatype | Description |
---|---|---|
permission | string | |
principal | string |
Name | Datatype | Description |
---|---|---|
permission | string | |
principal | string |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
listacls | select | deployment_name | List the ACLs for a given secret scope. Users must have the | |
getacl | select | deployment_name | Gets the details about the given ACL, such as the group and permission. Users must have the | |
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. | |
deleteacl | delete | deployment_name | Deletes the given ACL on the given scope. |
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.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- listacls
- getacl
List the ACLs for a given secret scope. Users must have the
SELECT
permission,
principal
FROM databricks_workspace.secrets.acls
WHERE deployment_name = '{{ deployment_name }}' -- required;
Gets the details about the given ACL, such as the group and permission. Users must have the
SELECT
permission,
principal
FROM databricks_workspace.secrets.acls
WHERE deployment_name = '{{ deployment_name }}' -- required;
REPLACE
examples
- putacl
Creates or overwrites the Access Control List (ACL) associated with the given principal (user or group) on the specified scope point.
REPLACE databricks_workspace.secrets.acls
SET
data__scope = '{{ scope }}',
data__principal = '{{ principal }}',
data__permission = '{{ permission }}'
WHERE
deployment_name = '{{ deployment_name }}' --required;
DELETE
examples
- deleteacl
Deletes the given ACL on the given scope.
DELETE FROM databricks_workspace.secrets.acls
WHERE deployment_name = '{{ deployment_name }}' --required;