Skip to main content

consumer_installations

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

Overview

Nameconsumer_installations
TypeResource
Iddatabricks_workspace.marketplace.consumer_installations

Fields

The following fields are returned by SELECT queries:

Request completed successfully.

NameDatatypeDescription
idstring
listing_idstring
catalog_namestring
listing_namestring
repo_namestring
share_namestring
error_messagestring
installed_oninteger
recipient_typestring
repo_pathstring
statusstring
token_detailobject
tokensarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdeployment_nameList all installations across all listings.
createinsertdeployment_nameInstall payload associated with a Databricks Marketplace listing.
updateupdatedeployment_nameThis is a update API that will update the part of the fields defined in the installation table as well as interact with external services according to the fields not included in the installation table
deletedeletedeployment_nameUninstall an installation associated with a Databricks Marketplace listing.

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
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

List all installations across all listings.

SELECT
id,
listing_id,
catalog_name,
listing_name,
repo_name,
share_name,
error_message,
installed_on,
recipient_type,
repo_path,
status,
token_detail,
tokens
FROM databricks_workspace.marketplace.consumer_installations
WHERE deployment_name = '{{ deployment_name }}' -- required;

INSERT examples

Install payload associated with a Databricks Marketplace listing.

INSERT INTO databricks_workspace.marketplace.consumer_installations (
data__share_name,
data__catalog_name,
data__recipient_type,
data__repo_detail,
data__accepted_consumer_terms,
deployment_name
)
SELECT
'{{ share_name }}',
'{{ catalog_name }}',
'{{ recipient_type }}',
'{{ repo_detail }}',
'{{ accepted_consumer_terms }}',
'{{ deployment_name }}'
RETURNING
installation
;

UPDATE examples

This is a update API that will update the part of the fields defined in the installation table as well as interact with external services according to the fields not included in the installation table

UPDATE databricks_workspace.marketplace.consumer_installations
SET
data__rotate_token = {{ rotate_token }},
data__installation = '{{ installation }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
RETURNING
installation;

DELETE examples

Uninstall an installation associated with a Databricks Marketplace listing.

DELETE FROM databricks_workspace.marketplace.consumer_installations
WHERE deployment_name = '{{ deployment_name }}' --required;