Skip to main content

consumer_installations

Operations on a consumer_installations resource.

Overview

Nameconsumer_installations
TypeResource
Iddatabricks_workspace.marketplace.consumer_installations

Fields

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

Methods

NameAccessible byRequired ParamsDescription
listSELECTdeployment_nameList all installations across all listings.
createINSERTlisting_id, deployment_nameInstall payload associated with a Databricks Marketplace listing.
deleteDELETEinstallation_id, listing_id, deployment_nameUninstall an installation associated with a Databricks Marketplace listing.
updateUPDATEinstallation_id, listing_id, deployment_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

SELECT examples

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

INSERT example

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

/*+ create */
INSERT INTO databricks_workspace.marketplace.consumer_installations (
listing_id,
deployment_name,
data__share_name,
data__catalog_name,
data__repo_detail,
data__recipient_type,
data__accepted_consumer_terms
)
SELECT
'{{ listing_id }}',
'{{ deployment_name }}',
'{{ share_name }}',
'{{ catalog_name }}',
'{{ repo_detail }}',
'{{ recipient_type }}',
'{{ accepted_consumer_terms }}'
;

UPDATE example

Updates a consumer_installations resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.marketplace.consumer_installations
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE installation_id = '{{ installation_id }}' AND
listing_id = '{{ listing_id }}' AND
deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a consumer_installations resource.

/*+ delete */
DELETE FROM databricks_workspace.marketplace.consumer_installations
WHERE installation_id = '{{ installation_id }}' AND
listing_id = '{{ listing_id }}' AND
deployment_name = '{{ deployment_name }}';