Skip to main content

published_app_integration

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

Overview

Namepublished_app_integration
TypeResource
Iddatabricks_account.oauth2.published_app_integration

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringDisplay name of the published OAuth app
app_idstring
integration_idstringUnique integration id for the published OAuth app
create_timestring
created_byinteger
token_access_policyobjectToken access policy

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
published_app_integration_getselectaccount_id, integration_idGets the Published OAuth App Integration for the given integration id.
published_app_integration_listselectaccount_idpage_size, page_tokenGet the list of published OAuth app integrations for the specified Databricks account
published_app_integration_createinsertaccount_idCreate Published OAuth App Integration.
published_app_integration_updateupdateaccount_id, integration_idUpdates an existing published OAuth App Integration. You can retrieve the published OAuth app
published_app_integration_deletedeleteaccount_id, integration_idDelete an existing Published OAuth App Integration. You can retrieve the published OAuth app

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

SELECT examples

Gets the Published OAuth App Integration for the given integration id.

SELECT
name,
app_id,
integration_id,
create_time,
created_by,
token_access_policy
FROM databricks_account.oauth2.published_app_integration
WHERE account_id = '{{ account_id }}' -- required
AND integration_id = '{{ integration_id }}' -- required
;

INSERT examples

Create Published OAuth App Integration.

INSERT INTO databricks_account.oauth2.published_app_integration (
app_id,
token_access_policy,
account_id
)
SELECT
'{{ app_id }}',
'{{ token_access_policy }}',
'{{ account_id }}'
RETURNING
integration_id
;

UPDATE examples

Updates an existing published OAuth App Integration. You can retrieve the published OAuth app

UPDATE databricks_account.oauth2.published_app_integration
SET
token_access_policy = '{{ token_access_policy }}'
WHERE
account_id = '{{ account_id }}' --required
AND integration_id = '{{ integration_id }}' --required;

DELETE examples

Delete an existing Published OAuth App Integration. You can retrieve the published OAuth app

DELETE FROM databricks_account.oauth2.published_app_integration
WHERE account_id = '{{ account_id }}' --required
AND integration_id = '{{ integration_id }}' --required
;