Skip to main content

instance_pool_permissions

Operations on a instance_pool_permissions resource.

Overview

Nameinstance_pool_permissions
TypeResource
Iddatabricks_workspace.compute.instance_pool_permissions

Fields

NameDatatype
access_control_listarray
object_idstring
object_typestring

Methods

NameAccessible byRequired ParamsDescription
getpermissionsSELECTinstance_pool_id, deployment_nameGets the permissions of an instance pool. Instance pools can inherit permissions from their root object.
updatepermissionsUPDATEinstance_pool_id, deployment_nameUpdates the permissions on an instance pool. Instance pools can inherit permissions from their root object.
setpermissionsREPLACEinstance_pool_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.instance_pool_permissions
WHERE instance_pool_id = '{{ instance_pool_id }}' AND
deployment_name = '{{ deployment_name }}';

UPDATE example

Updates a instance_pool_permissions resource.

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

REPLACE example

Replaces a instance_pool_permissions resource.

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