provider_exchanges
Creates, updates, deletes, gets or lists a provider_exchanges resource.
Overview
| Name | provider_exchanges |
| Type | Resource |
| Id | databricks_workspace.marketplace.provider_exchanges |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
exchange | object |
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
comment | string | |
created_at | integer | |
created_by | string | |
filters | array | |
linked_listings | array | |
updated_at | integer | |
updated_by | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, deployment_name | Get an exchange. | |
list | select | deployment_name | page_size, page_token | List exchanges visible to provider |
create | insert | deployment_name, exchange | Create an exchange | |
update | replace | id, deployment_name, exchange | Update an exchange | |
delete | delete | id, deployment_name | This 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.
| Name | Datatype | Description |
|---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
id | string | |
page_size | integer | |
page_token | string |
SELECT examples
- get
- list
Get an exchange.
SELECT
exchange
FROM databricks_workspace.marketplace.provider_exchanges
WHERE id = '{{ id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;
List exchanges visible to provider
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 }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;
INSERT examples
- create
- Manifest
Create an exchange
INSERT INTO databricks_workspace.marketplace.provider_exchanges (
exchange,
deployment_name
)
SELECT
'{{ exchange }}' /* required */,
'{{ deployment_name }}'
RETURNING
exchange_id
;
# Description fields are for documentation purposes
- name: provider_exchanges
props:
- name: deployment_name
value: "{{ deployment_name }}"
description: Required parameter for the provider_exchanges resource.
- name: exchange
value:
name: "{{ name }}"
comment: "{{ comment }}"
created_at: {{ created_at }}
created_by: "{{ created_by }}"
filters:
- exchange_id: "{{ exchange_id }}"
filter_value: "{{ filter_value }}"
filter_type: "{{ filter_type }}"
created_at: {{ created_at }}
created_by: "{{ created_by }}"
id: "{{ id }}"
name: "{{ name }}"
updated_at: {{ updated_at }}
updated_by: "{{ updated_by }}"
id: "{{ id }}"
linked_listings:
- created_at: {{ created_at }}
created_by: "{{ created_by }}"
exchange_id: "{{ exchange_id }}"
exchange_name: "{{ exchange_name }}"
id: "{{ id }}"
listing_id: "{{ listing_id }}"
listing_name: "{{ listing_name }}"
updated_at: {{ updated_at }}
updated_by: "{{ updated_by }}"
REPLACE examples
- update
Update an exchange
REPLACE databricks_workspace.marketplace.provider_exchanges
SET
exchange = '{{ exchange }}'
WHERE
id = '{{ id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND exchange = '{{ exchange }}' --required
RETURNING
exchange;
DELETE examples
- delete
This removes a listing from marketplace.
DELETE FROM databricks_workspace.marketplace.provider_exchanges
WHERE id = '{{ id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;