rule_sets
Operations on a rule_sets
resource.
Overview
Name | rule_sets |
Type | Resource |
Id | databricks_workspace.iam.rule_sets |
Fields
Name | Datatype |
---|---|
name | string |
etag | string |
grant_rules | array |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getruleset | SELECT | etag, name, deployment_name | Get 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. |
updateruleset | UPDATE | deployment_name | Replace 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 }}';