Skip to main content

cluster_policies_permissions

Operations on a cluster_policies_permissions resource.

Overview

Namecluster_policies_permissions
TypeResource
Iddatabricks_workspace.compute.cluster_policies_permissions

Fields

NameDatatype
access_control_listarray
object_idstring
object_typestring

Methods

NameAccessible byRequired ParamsDescription
getpermissionsSELECTcluster_policy_id, deployment_nameGets the permissions of a cluster policy. Cluster policies can inherit permissions from their root object.
updatepermissionsUPDATEcluster_policy_id, deployment_nameUpdates the permissions on a cluster policy. Cluster policies can inherit permissions from their root object.
setpermissionsREPLACEcluster_policy_id, deployment_nameSets 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.compute.cluster_policies_permissions
WHERE cluster_policy_id = '{{ cluster_policy_id }}' AND
deployment_name = '{{ deployment_name }}';

UPDATE example

Updates a cluster_policies_permissions resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.compute.cluster_policies_permissions
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE cluster_policy_id = '{{ cluster_policy_id }}' AND
deployment_name = '{{ deployment_name }}';

REPLACE example

Replaces a cluster_policies_permissions resource.

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