secret_acls
Creates, updates, deletes, gets or lists a secret_acls resource.
Overview
| Name | secret_acls |
| Type | Resource |
| Id | databricks_workspace.workspace.secret_acls |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
permission | string | The permission level applied to the principal. (MANAGE, READ, WRITE) |
principal | string | The principal in which the permission is applied. |
| Name | Datatype | Description |
|---|---|---|
permission | string | The permission level applied to the principal. (MANAGE, READ, WRITE) |
principal | string | The principal in which the permission is applied. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | scope, principal, deployment_name | Describes the details about the given ACL, such as the group and permission. | |
list | select | scope, deployment_name | Lists the ACLs set on the given scope. | |
put | insert | deployment_name, scope, principal, permission | Creates or overwrites the ACL associated with the given principal (user or group) on the specified | |
delete | exec | deployment_name, scope, principal | 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) |
principal | string | The principal to fetch ACL information for. |
scope | string | The name of the scope to fetch ACL information from. |
SELECT examples
- get
- list
Describes the details about the given ACL, such as the group and permission.
SELECT
permission,
principal
FROM databricks_workspace.workspace.secret_acls
WHERE scope = '{{ scope }}' -- required
AND principal = '{{ principal }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;
Lists the ACLs set on the given scope.
SELECT
permission,
principal
FROM databricks_workspace.workspace.secret_acls
WHERE scope = '{{ scope }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;
INSERT examples
- put
- Manifest
Creates or overwrites the ACL associated with the given principal (user or group) on the specified
INSERT INTO databricks_workspace.workspace.secret_acls (
scope,
principal,
permission,
deployment_name
)
SELECT
'{{ scope }}' /* required */,
'{{ principal }}' /* required */,
'{{ permission }}' /* required */,
'{{ deployment_name }}'
;
# Description fields are for documentation purposes
- name: secret_acls
props:
- name: deployment_name
value: "{{ deployment_name }}"
description: Required parameter for the secret_acls resource.
- name: scope
value: "{{ scope }}"
description: |
The name of the scope to apply permissions to.
- name: principal
value: "{{ principal }}"
description: |
The principal in which the permission is applied.
- name: permission
value: "{{ permission }}"
description: |
The permission level applied to the principal.
Lifecycle Methods
- delete
Deletes the given ACL on the given scope.
EXEC databricks_workspace.workspace.secret_acls.delete
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"scope": "{{ scope }}",
"principal": "{{ principal }}"
}'
;