Skip to main content

provider_exchange_listings

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

Overview

Nameprovider_exchange_listings
TypeResource
Iddatabricks_workspace.marketplace.provider_exchange_listings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
exchange_idstring
listing_idstring
exchange_namestring
listing_namestring
created_atinteger
created_bystring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_for_listingselectlisting_id, deployment_namepage_size, page_tokenList exchanges associated with a listing
list_for_exchangeselectexchange_id, deployment_namepage_size, page_tokenList listings associated with an exchange
addinsertdeployment_name, listing_id, exchange_idAssociate an exchange with a listing
deletedeleteid, deployment_nameDisassociate an exchange with a 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)
exchange_idstring
idstring
listing_idstring
page_sizeinteger
page_tokenstring

SELECT examples

List exchanges associated with a listing

SELECT
id,
exchange_id,
listing_id,
exchange_name,
listing_name,
created_at,
created_by
FROM databricks_workspace.marketplace.provider_exchange_listings
WHERE listing_id = '{{ listing_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;

INSERT examples

Associate an exchange with a listing

INSERT INTO databricks_workspace.marketplace.provider_exchange_listings (
listing_id,
exchange_id,
deployment_name
)
SELECT
'{{ listing_id }}' /* required */,
'{{ exchange_id }}' /* required */,
'{{ deployment_name }}'
RETURNING
exchange_for_listing
;

DELETE examples

Disassociate an exchange with a listing

DELETE FROM databricks_workspace.marketplace.provider_exchange_listings
WHERE id = '{{ id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;