Skip to main content

custom_app_integration

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

Overview

Namecustom_app_integration
TypeResource
Iddatabricks_account.oauth2.custom_app_integration

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe display name of the custom OAuth app
client_idstring
integration_idstringID of this custom app
confidentialbooleanThis field indicates whether an OAuth client secret is required to authenticate this client.
create_timestring
created_byinteger
creator_usernamestring
redirect_urlsarrayList of OAuth redirect urls
scopesarray
token_access_policyobjectToken access policy
user_authorized_scopesarrayScopes that will need to be consented by end user to mint the access token. If the user does not authorize the access token will not be minted. Must be a subset of scopes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
custom_app_integration_getselectaccount_id, integration_idGets the Custom OAuth App Integration for the given integration id.
custom_app_integration_listselectaccount_idinclude_creator_username, page_size, page_tokenGet the list of custom OAuth app integrations for the specified Databricks account
custom_app_integration_createinsertaccount_idCreate Custom OAuth App Integration.
custom_app_integration_updateupdateaccount_id, integration_idUpdates an existing custom OAuth App Integration. You can retrieve the custom OAuth app integration
custom_app_integration_deletedeleteaccount_id, integration_idDelete an existing Custom OAuth App Integration. You can retrieve the custom OAuth app integration via

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
include_creator_usernameboolean:param page_size: int (optional)
page_sizeinteger
page_tokenstring:returns: Iterator over :class:GetCustomAppIntegrationOutput

SELECT examples

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

SELECT
name,
client_id,
integration_id,
confidential,
create_time,
created_by,
creator_username,
redirect_urls,
scopes,
token_access_policy,
user_authorized_scopes
FROM databricks_account.oauth2.custom_app_integration
WHERE account_id = '{{ account_id }}' -- required
AND integration_id = '{{ integration_id }}' -- required
;

INSERT examples

Create Custom OAuth App Integration.

INSERT INTO databricks_account.oauth2.custom_app_integration (
confidential,
name,
redirect_urls,
scopes,
token_access_policy,
user_authorized_scopes,
account_id
)
SELECT
{{ confidential }},
'{{ name }}',
'{{ redirect_urls }}',
'{{ scopes }}',
'{{ token_access_policy }}',
'{{ user_authorized_scopes }}',
'{{ account_id }}'
RETURNING
client_id,
integration_id,
client_secret
;

UPDATE examples

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

UPDATE databricks_account.oauth2.custom_app_integration
SET
redirect_urls = '{{ redirect_urls }}',
scopes = '{{ scopes }}',
token_access_policy = '{{ token_access_policy }}',
user_authorized_scopes = '{{ user_authorized_scopes }}'
WHERE
account_id = '{{ account_id }}' --required
AND integration_id = '{{ integration_id }}' --required;

DELETE examples

Delete an existing Custom OAuth App Integration. You can retrieve the custom OAuth app integration via

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