Skip to main content

provider_exchange_listings

Operations on a provider_exchange_listings resource.

Overview

Nameprovider_exchange_listings
TypeResource
Iddatabricks_workspace.marketplace.provider_exchange_listings

Fields

NameDatatype
idstring
created_atinteger
created_bystring
exchange_idstring
exchange_namestring
listing_idstring
listing_namestring

Methods

NameAccessible byRequired ParamsDescription
listexchangesforlistingSELECTlisting_id, deployment_nameList exchanges associated with a listing
listlistingsforexchangeSELECTexchange_id, deployment_nameList listings associated with an exchange
addlistingtoexchangeINSERTdeployment_nameAssociate an exchange with a listing
deletelistingfromexchangeDELETEid, deployment_nameDisassociate an exchange with a listing

SELECT examples

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

INSERT example

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

/*+ create */
INSERT INTO databricks_workspace.marketplace.provider_exchange_listings (
deployment_name,
data__listing_id,
data__exchange_id
)
SELECT
'{{ deployment_name }}',
'{{ listing_id }}',
'{{ exchange_id }}'
;

DELETE example

Deletes a provider_exchange_listings resource.

/*+ delete */
DELETE FROM databricks_workspace.marketplace.provider_exchange_listings
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';