Skip to main content

custom_app_integrations

Operations on a custom_app_integrations resource.

Overview

Namecustom_app_integrations
TypeResource
Iddatabricks_account.oauth.custom_app_integrations

Fields

NameDatatype
namestring
client_idstring
confidentialboolean
create_timestring
created_byinteger
creator_usernamestring
integration_idstring
redirect_urlsarray
scopesarray
token_access_policyobject

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccount_id, integration_idGets the Custom OAuth App Integration for the given integration id.
listSELECTaccount_idGet the list of custom OAuth app integrations for the specified Databricks account
createINSERTaccount_idCreate Custom OAuth App Integration.
deleteDELETEaccount_id, integration_idDelete an existing Custom OAuth App Integration. You can retrieve the custom OAuth app integration via
updateUPDATEaccount_id, integration_idUpdates an existing custom OAuth App Integration. You can retrieve the custom OAuth app integration via

SELECT examples

SELECT
name,
client_id,
confidential,
create_time,
created_by,
creator_username,
integration_id,
redirect_urls,
scopes,
token_access_policy
FROM databricks_account.oauth.custom_app_integrations
WHERE account_id = '{{ account_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new custom_app_integrations resource.

/*+ create */
INSERT INTO databricks_account.oauth.custom_app_integrations (
account_id,
data__summary,
data__value
)
SELECT
'{{ account_id }}',
'{{ summary }}',
'{{ value }}'
;

UPDATE example

Updates a custom_app_integrations resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_account.oauth.custom_app_integrations
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE account_id = '{{ account_id }}' AND
integration_id = '{{ integration_id }}';

DELETE example

Deletes a custom_app_integrations resource.

/*+ delete */
DELETE FROM databricks_account.oauth.custom_app_integrations
WHERE account_id = '{{ account_id }}' AND
integration_id = '{{ integration_id }}';