Skip to main content

rule_sets

Operations on a rule_sets resource.

Overview

Namerule_sets
TypeResource
Iddatabricks_workspace.iam.rule_sets

Fields

NameDatatype
namestring
etagstring
grant_rulesarray

Methods

NameAccessible byRequired ParamsDescription
getrulesetSELECTetag, name, deployment_nameGet a rule set by its name. A rule set is always attached to a resource and contains a list of access rules on the said resource. Currently only a default rule set for each resource is supported.
updaterulesetUPDATEdeployment_nameReplace the rules of a rule set. First, use a GET rule set request to read the current version of the rule set before modifying it. This pattern helps prevent conflicts between concurrent updates.

SELECT examples

SELECT
name,
etag,
grant_rules
FROM databricks_workspace.iam.rule_sets
WHERE etag = '{{ etag }}' AND
name = '{{ name }}' AND
deployment_name = '{{ deployment_name }}';

UPDATE example

Updates a rule_sets resource.

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