Skip to main content

provider_exchanges

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

Overview​

Nameprovider_exchanges
TypeResource
Iddatabricks_workspace.marketplace.provider_exchanges

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
â–¶exchangeobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, deployment_name, workspace_domainGet an exchange.
listselectdeployment_name, workspace_domainpage_size, page_tokenList exchanges visible to provider
createinsertdeployment_name, workspace_domain, exchangeCreate an exchange
updatereplaceid, deployment_name, workspace_domain, exchangeUpdate an exchange
deletedeleteid, deployment_name, workspace_domainThis removes a listing from marketplace.

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
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"}})
page_sizeinteger
page_tokenstring

SELECT examples​

Get an exchange.

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

INSERT examples​

Create an exchange

INSERT INTO databricks_workspace.marketplace.provider_exchanges (
exchange,
deployment_name,
workspace_domain
)
SELECT
'{{ exchange }}' /* required */,
'{{ deployment_name }}',
'{{ workspace_domain }}'
RETURNING
exchange_id
;

REPLACE examples​

Update an exchange

REPLACE databricks_workspace.marketplace.provider_exchanges
SET
exchange = '{{ exchange }}'
WHERE
id = '{{ id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND workspace_domain = '{{ workspace_domain }}' --required
AND exchange = '{{ exchange }}' --required
RETURNING
exchange;

DELETE examples​

This removes a listing from marketplace.

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