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_nameGet a published listing in the Databricks Marketplace that the consumer has access to.
listselectdeployment_nameassets, 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_nameidsBatch get a published listing in the Databricks Marketplace that the consumer has access to.
searchexecquery, deployment_nameassets, 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 (default: dbc-abcd0123-a1bc)
idstring
querystringFuzzy matches query
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
tagsarrayMatches any of the following tags

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
;

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,
@ids='{{ ids }}'
;