rule_sets
Operations on a rule_sets
resource.
Overview
Name | rule_sets |
Type | Resource |
Id | databricks_account.iam.rule_sets |
Fields
Name | Datatype |
---|---|
name | string |
etag | string |
grant_rules | array |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getruleset | SELECT | account_id, etag, 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 | SELECT | account_id | Replace the rules of a rule set. First, use get to read the current version of the rule set before modifying it. This pattern helps prevent conflicts between concurrent updates. |
SELECT
examples
- rule_sets (updateruleset)
- rule_sets (getruleset)
SELECT
name,
etag,
grant_rules
FROM databricks_account.iam.rule_sets
WHERE account_id = '{{ account_id }}';
SELECT
name,
etag,
grant_rules
FROM databricks_account.iam.rule_sets
WHERE account_id = '{{ account_id }}' AND
etag = '{{ etag }}' AND
name = '{{ name }}';