Skip to main content

attribute_control_entries

Creates, updates, deletes, gets or lists an attribute_control_entries resource.

Overview

Nameattribute_control_entries
TypeResource
Iddatabricks_account.iamv2.attribute_control_entries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe resource name of the entry. Format: accounts/{account_id}/attribute-control-entries/{attribute_name} where {attribute_name} is the IdP attribute being governed (e.g. "department").
is_allowedbooleanWhether the attribute is permitted. Always true in the Identity Attributes PrPr.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectparentpage_size, page_tokenLists the identity attribute control-list entries for an account.
getselectnameGets an identity attribute control-list entry.
createinsertparent, attribute_control_entryattribute_control_entry_idCreates (allows) an identity attribute control-list entry for an account.
updateupdatename, update_mask, attribute_control_entryUpdates an identity attribute control-list entry for an account.
deletedeletenameDeletes an identity attribute control-list entry.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
namestringRequired. The resource name of the entry to delete. Format: accounts/{account_id}/attribute-control-entries/{attribute_name}
parentstringRequired. The account under which to create the entry. Format: accounts/{account_id}
update_maskobjectRequired. The fields to update. For the PrPr only is_allowed is mutable, so the backend currently applies the full entry regardless of the mask.
attribute_control_entry_idstringOptional. The ID to use for the entry, which becomes the last segment of its resource name: the IdP attribute being governed (e.g. "department").
page_sizeintegerOptional. The maximum number of entries to return.
page_tokenstringOptional. A page token from a previous call, to retrieve the next page.

SELECT examples

Lists the identity attribute control-list entries for an account.

SELECT
name,
is_allowed
FROM databricks_account.iamv2.attribute_control_entries
WHERE parent = '{{ parent }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;

INSERT examples

Creates (allows) an identity attribute control-list entry for an account.

INSERT INTO databricks_account.iamv2.attribute_control_entries (
attribute_control_entry,
parent,
attribute_control_entry_id
)
SELECT
'{{ attribute_control_entry }}' /* required */,
'{{ parent }}',
'{{ attribute_control_entry_id }}'
RETURNING
name,
is_allowed
;

UPDATE examples

Updates an identity attribute control-list entry for an account.

UPDATE databricks_account.iamv2.attribute_control_entries
SET
attribute_control_entry = '{{ attribute_control_entry }}'
WHERE
name = '{{ name }}' --required
AND update_mask = '{{ update_mask }}' --required
AND attribute_control_entry = '{{ attribute_control_entry }}' --required
RETURNING
name,
is_allowed;

DELETE examples

Deletes an identity attribute control-list entry.

DELETE FROM databricks_account.iamv2.attribute_control_entries
WHERE name = '{{ name }}' --required
;