Skip to main content

recipient_federation_policies

Creates, updates, deletes, gets or lists a recipient_federation_policies resource.

Overview

Namerecipient_federation_policies
TypeResource
Iddatabricks_workspace.sharing.recipient_federation_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique, immutable system-generated identifier for the federation policy.
namestringName of the federation policy. A recipient can have multiple policies with different names. The name must contain only lowercase alphanumeric characters, numbers, and hyphens.
commentstring
create_timestringSystem-generated timestamp indicating when the policy was created.
oidc_policyobjectSpecifies the policy to use for validating OIDC claims in the federated tokens.
update_timestringSystem-generated timestamp indicating when the policy was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectrecipient_name, name, deployment_nameReads an existing federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks
listselectrecipient_name, deployment_namemax_results, page_tokenLists federation policies for an OIDC_FEDERATION recipient for sharing data from Databricks to
createinsertrecipient_name, deployment_name, policyCreate a federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to
recipient_federation_policies_updateupdaterecipient_name, name, deployment_name, policyupdate_maskUpdates an existing federation policy for an OIDC_RECIPIENT. The caller must be the owner of the
deletedeleterecipient_name, name, deployment_nameDeletes an existing federation policy for an OIDC_FEDERATION recipient. The caller must be the owner

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
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
namestringName of the policy. This is the name of the policy to be deleted.
recipient_namestringName of the recipient. This is the name of the recipient for which the policy is being deleted.
max_resultsinteger
page_tokenstring
update_maskstringThe field mask specifies which fields of the policy to update. To specify multiple fields in the field mask, use comma as the separator (no space). The special value '*' indicates that all fields should be updated (full replacement). If unspecified, all fields that are set in the policy provided in the update request will overwrite the corresponding fields in the existing policy. Example value: 'comment,oidc_policy.audiences'.

SELECT examples

Reads an existing federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks

SELECT
id,
name,
comment,
create_time,
oidc_policy,
update_time
FROM databricks_workspace.sharing.recipient_federation_policies
WHERE recipient_name = '{{ recipient_name }}' -- required
AND name = '{{ name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Create a federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to

INSERT INTO databricks_workspace.sharing.recipient_federation_policies (
policy,
recipient_name,
deployment_name
)
SELECT
'{{ policy }}' /* required */,
'{{ recipient_name }}',
'{{ deployment_name }}'
RETURNING
id,
name,
comment,
create_time,
oidc_policy,
update_time
;

UPDATE examples

Updates an existing federation policy for an OIDC_RECIPIENT. The caller must be the owner of the

UPDATE databricks_workspace.sharing.recipient_federation_policies
SET
policy = '{{ policy }}'
WHERE
recipient_name = '{{ recipient_name }}' --required
AND name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND policy = '{{ policy }}' --required
AND update_mask = '{{ update_mask}}'
RETURNING
id,
name,
comment,
create_time,
oidc_policy,
update_time;

DELETE examples

Deletes an existing federation policy for an OIDC_FEDERATION recipient. The caller must be the owner

DELETE FROM databricks_workspace.sharing.recipient_federation_policies
WHERE recipient_name = '{{ recipient_name }}' --required
AND name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;