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_id, account_hostGets the Published OAuth App Integration for the given integration id.
published_app_integration_listselectaccount_id, account_hostpage_size, page_tokenGet the list of published OAuth app integrations for the specified Databricks account
published_app_integration_createinsertaccount_id, account_hostCreate Published OAuth App Integration.
published_app_integration_updateupdateaccount_id, integration_id, account_hostUpdates an existing published OAuth App Integration. You can retrieve the published OAuth app
published_app_integration_deletedeleteaccount_id, integration_id, account_hostDelete 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_hoststringThe Databricks account console host. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws), or set explicitly with DATABRICKS_ACCOUNT_HOST (bare host, no scheme). (default: accounts.cloud.databricks.com, x-stackQL-envVar: DATABRICKS_ACCOUNT_HOST, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"accounts.cloud.databricks.com","azure":"accounts.azuredatabricks.net","gcp":"accounts.gcp.databricks.com"}})
account_idstring
integration_idstring
page_sizeinteger
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
AND account_host = '{{ account_host }}' -- required
;

INSERT examples​

Create Published OAuth App Integration.

INSERT INTO databricks_account.oauth2.published_app_integration (
app_id,
token_access_policy,
account_id,
account_host
)
SELECT
'{{ app_id }}',
'{{ token_access_policy }}',
'{{ account_id }}',
'{{ account_host }}'
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
AND account_host = '{{ account_host }}' --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
AND account_host = '{{ account_host }}' --required
;