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
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:param page_token: str (optional)
page_tokenstring

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
;

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
;