Skip to main content

provider_exchanges

Operations on a provider_exchanges resource.

Overview

Nameprovider_exchanges
TypeResource
Iddatabricks_workspace.marketplace.provider_exchanges

Fields

NameDatatype
idstring
namestring
commentstring
created_atinteger
created_bystring
filtersarray
linked_listingsarray
updated_atinteger
updated_bystring

Methods

NameAccessible byRequired ParamsDescription
getSELECTid, deployment_nameGet an exchange.
listSELECTdeployment_nameList exchanges visible to provider
createINSERTdeployment_nameCreate an exchange
deleteDELETEid, deployment_nameThis removes a listing from marketplace.
updateUPDATEid, deployment_nameUpdate an exchange

SELECT examples

SELECT
id,
name,
comment,
created_at,
created_by,
filters,
linked_listings,
updated_at,
updated_by
FROM databricks_workspace.marketplace.provider_exchanges
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

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

/*+ create */
INSERT INTO databricks_workspace.marketplace.provider_exchanges (
deployment_name,
data__exchange
)
SELECT
'{{ deployment_name }}',
'{{ exchange }}'
;

UPDATE example

Updates a provider_exchanges resource.

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

DELETE example

Deletes a provider_exchanges resource.

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