published_app_integration
Creates, updates, deletes, gets or lists a published_app_integration resource.
Overview
| Name | published_app_integration |
| Type | Resource |
| Id | databricks_account.oauth2.published_app_integration |
Fields
The following fields are returned by SELECT queries:
- published_app_integration_get
- published_app_integration_list
| Name | Datatype | Description |
|---|---|---|
name | string | Display name of the published OAuth app |
app_id | string | |
integration_id | string | Unique integration id for the published OAuth app |
create_time | string | |
created_by | integer | |
token_access_policy | object | Token access policy |
| Name | Datatype | Description |
|---|---|---|
name | string | Display name of the published OAuth app |
app_id | string | |
integration_id | string | Unique integration id for the published OAuth app |
create_time | string | |
created_by | integer | |
token_access_policy | object | Token access policy |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
published_app_integration_get | select | account_id, integration_id | Gets the Published OAuth App Integration for the given integration id. | |
published_app_integration_list | select | account_id | page_size, page_token | Get the list of published OAuth app integrations for the specified Databricks account |
published_app_integration_create | insert | account_id | Create Published OAuth App Integration. | |
published_app_integration_update | update | account_id, integration_id | Updates an existing published OAuth App Integration. You can retrieve the published OAuth app | |
published_app_integration_delete | delete | account_id, integration_id | Delete 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | |
integration_id | string | str |
page_size | integer | :param page_token: str (optional) |
page_token | string |
SELECT examples
- published_app_integration_get
- published_app_integration_list
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
;
Get the list of published OAuth app integrations for the specified Databricks account
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 page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;
INSERT examples
- published_app_integration_create
- Manifest
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
;
# Description fields are for documentation purposes
- name: published_app_integration
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the published_app_integration resource.
- name: app_id
value: "{{ app_id }}"
description: |
App id of the OAuth published app integration. For example power-bi, tableau-deskop
- name: token_access_policy
description: |
Token access policy
value:
absolute_session_lifetime_in_minutes: {{ absolute_session_lifetime_in_minutes }}
access_token_ttl_in_minutes: {{ access_token_ttl_in_minutes }}
enable_single_use_refresh_tokens: {{ enable_single_use_refresh_tokens }}
refresh_token_ttl_in_minutes: {{ refresh_token_ttl_in_minutes }}
UPDATE examples
- published_app_integration_update
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
- published_app_integration_delete
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
;