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_id, account_hostGets the Custom OAuth App Integration for the given integration id.
custom_app_integration_listselectaccount_id, account_hostinclude_creator_username, page_size, page_tokenGet the list of custom OAuth app integrations for the specified Databricks account
custom_app_integration_createinsertaccount_id, account_hostCreate Custom OAuth App Integration.
custom_app_integration_updateupdateaccount_id, integration_id, account_hostUpdates an existing custom OAuth App Integration. You can retrieve the custom OAuth app integration
custom_app_integration_deletedeleteaccount_id, integration_id, account_hostDelete 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_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
include_creator_usernameboolean
page_sizeinteger
page_tokenstring

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
AND account_host = '{{ account_host }}' -- 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,
account_host
)
SELECT
{{ confidential }},
'{{ name }}',
'{{ redirect_urls }}',
'{{ scopes }}',
'{{ token_access_policy }}',
'{{ user_authorized_scopes }}',
'{{ account_id }}',
'{{ account_host }}'
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
AND account_host = '{{ account_host }}' --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
AND account_host = '{{ account_host }}' --required
;