Skip to main content

vw_published_app_integrations

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

Overview

Namevw_published_app_integrations
TypeView
Iddatabricks_account.oauth2.vw_published_app_integrations

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
integration_idstringUnique identifier for the published app integration.
app_idstringID of the published app (matches integration_id for published apps).
namestringHuman-readable name of the published app (e.g. Tableau, Power BI, Databricks CLI).
create_timestringTimestamp when the integration was enabled on this account (ISO 8601).
created_byintegerID of the user who enabled this published app integration (0 for system-created).
access_token_ttl_minutesintegerTime-to-live for access tokens issued to this app, in minutes (typically 60).
refresh_token_ttl_minutesintegerTime-to-live for refresh tokens issued to this app, in minutes (typically 10080 - 7 days).
session_lifetime_minutesintegerMaximum absolute session lifetime for this app, in minutes (e.g. 129600 = 90 days, 525600 = 1 year).
single_use_refresh_tokensbooleanWhether refresh tokens are single-use and rotated on each use (1 = true, 0 = false).

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
integration_id,
app_id,
name,
create_time,
created_by,
access_token_ttl_minutes,
refresh_token_ttl_minutes,
session_lifetime_minutes,
single_use_refresh_tokens
FROM databricks_account.oauth2.vw_published_app_integrations
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
p.account_id,
p.integration_id,
p.app_id,
p.name,
p.create_time,
p.created_by,
JSON_EXTRACT(p.token_access_policy, '$.access_token_ttl_in_minutes') AS access_token_ttl_minutes,
JSON_EXTRACT(p.token_access_policy, '$.refresh_token_ttl_in_minutes') AS refresh_token_ttl_minutes,
JSON_EXTRACT(p.token_access_policy, '$.absolute_session_lifetime_in_minutes') AS session_lifetime_minutes,
JSON_EXTRACT(p.token_access_policy, '$.enable_single_use_refresh_tokens') AS single_use_refresh_tokens
FROM databricks_account.oauth2.published_app_integration p
WHERE account_id = '{{ account_id }}'