Skip to main content

consumer_listings

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

Overview​

Nameconsumer_listings
TypeResource
Iddatabricks_workspace.marketplace.consumer_listings

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
â–¶listingobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, deployment_name, workspace_domainGet a published listing in the Databricks Marketplace that the consumer has access to.
listselectdeployment_name, workspace_domainassets, categories, is_free, is_private_exchange, is_staff_pick, page_size, page_token, provider_ids, tagsList all published listings in the Databricks Marketplace that the consumer has access to.
batch_getexecdeployment_name, workspace_domainidsBatch get a published listing in the Databricks Marketplace that the consumer has access to.
searchexecquery, deployment_name, workspace_domainassets, categories, is_free, is_private_exchange, page_size, page_token, provider_idsSearch published listings in the Databricks Marketplace that the consumer has access to. This query

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: the host prefix of the workspace URL (dbc-abcd0123-a1bc on AWS, adb-1234567890123456.7 on Azure, 1234567890123456.7 on GCP). Set DATABRICKS_DEPLOYMENT_NAME to default it for the session. (default: dbc-abcd0123-a1bc, x-stackQL-envVar: DATABRICKS_DEPLOYMENT_NAME)
idstring
querystringFuzzy matches query
workspace_domainstringThe Databricks workspace domain suffix for the cloud. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws). (default: cloud.databricks.com, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"cloud.databricks.com","azure":"azuredatabricks.net","gcp":"gcp.databricks.com"}})
assetsarrayMatches any of the following asset types
categoriesarrayMatches any of the following categories
idsarray
is_freeboolean
is_private_exchangeboolean
is_staff_pickbooleanFilters each listing based on whether it is a staff pick.
page_sizeinteger
page_tokenstring
provider_idsarrayMatches any of the following provider ids
tagsobjectMatches listings with this tag

SELECT examples​

Get a published listing in the Databricks Marketplace that the consumer has access to.

SELECT
listing
FROM databricks_workspace.marketplace.consumer_listings
WHERE id = '{{ id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND workspace_domain = '{{ workspace_domain }}' -- required
;

Lifecycle Methods​

Batch get a published listing in the Databricks Marketplace that the consumer has access to.

EXEC databricks_workspace.marketplace.consumer_listings.batch_get
@deployment_name='{{ deployment_name }}' --required,
@workspace_domain='{{ workspace_domain }}' --required,
@ids='{{ ids }}'
;