pipeline_permissions
Operations on a pipeline_permissions
resource.
Overview
Name | pipeline_permissions |
Type | Resource |
Id | databricks_workspace.deltalivetables.pipeline_permissions |
Fields
Name | Datatype |
---|---|
access_control_list | array |
object_id | string |
object_type | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getpermissions | SELECT | pipeline_id, deployment_name | Gets the permissions of a pipeline. Pipelines can inherit permissions from their root object. |
updatepermissions | UPDATE | pipeline_id, deployment_name | Updates the permissions on a pipeline. Pipelines can inherit permissions from their root object. |
setpermissions | REPLACE | pipeline_id, deployment_name | Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their root object. |
SELECT
examples
SELECT
access_control_list,
object_id,
object_type
FROM databricks_workspace.deltalivetables.pipeline_permissions
WHERE pipeline_id = '{{ pipeline_id }}' AND
deployment_name = '{{ deployment_name }}';
UPDATE
example
Updates a pipeline_permissions
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.deltalivetables.pipeline_permissions
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE pipeline_id = '{{ pipeline_id }}' AND
deployment_name = '{{ deployment_name }}';
REPLACE
example
Replaces a pipeline_permissions
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.deltalivetables.pipeline_permissions
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE pipeline_id = '{{ pipeline_id }}' AND
deployment_name = '{{ deployment_name }}';