provider_exchange_listings
Creates, updates, deletes, gets or lists a provider_exchange_listings resource.
Overview
| Name | provider_exchange_listings |
| Type | Resource |
| Id | databricks_workspace.marketplace.provider_exchange_listings |
Fields
The following fields are returned by SELECT queries:
- list_for_listing
- list_for_exchange
| Name | Datatype | Description |
|---|---|---|
id | string | |
exchange_id | string | |
listing_id | string | |
exchange_name | string | |
listing_name | string | |
created_at | integer | |
created_by | string |
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_for_listing | select | listing_id, deployment_name | page_size, page_token | List exchanges associated with a listing |
list_for_exchange | select | exchange_id, deployment_name | page_size, page_token | List listings associated with an exchange |
add | insert | deployment_name, listing_id, exchange_id | Associate an exchange with a listing | |
delete | delete | id, deployment_name | Disassociate 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.
| Name | Datatype | Description |
|---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
exchange_id | string | |
id | string | |
listing_id | string | |
page_size | integer | |
page_token | string |
SELECT examples
- list_for_listing
- list_for_exchange
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 }}'
;
List listings associated with an exchange
SELECT
*
FROM databricks_workspace.marketplace.provider_exchange_listings
WHERE exchange_id = '{{ exchange_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;
INSERT examples
- add
- Manifest
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
;
# Description fields are for documentation purposes
- name: provider_exchange_listings
props:
- name: deployment_name
value: "{{ deployment_name }}"
description: Required parameter for the provider_exchange_listings resource.
- name: listing_id
value: "{{ listing_id }}"
- name: exchange_id
value: "{{ exchange_id }}"
DELETE examples
- delete
Disassociate an exchange with a listing
DELETE FROM databricks_workspace.marketplace.provider_exchange_listings
WHERE id = '{{ id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;