provider_listings
Operations on a provider_listings
resource.
Overview
Name | provider_listings |
Type | Resource |
Id | databricks_workspace.marketplace.provider_listings |
Fields
Name | Datatype |
---|---|
id | string |
detail | object |
summary | object |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | id, deployment_name | Get a listing |
list | SELECT | deployment_name | List listings owned by this provider |
create | INSERT | deployment_name | Create a new listing |
delete | DELETE | id, deployment_name | Delete a listing |
update | UPDATE | id, deployment_name | Update a listing |
SELECT
examples
- provider_listings (list)
- provider_listings (get)
SELECT
id,
detail,
summary
FROM databricks_workspace.marketplace.provider_listings
WHERE deployment_name = '{{ deployment_name }}';
SELECT
id,
detail,
summary
FROM databricks_workspace.marketplace.provider_listings
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';
INSERT
example
Use the following StackQL query and manifest file to create a new provider_listings
resource.
- provider_listings
- Manifest
/*+ create */
INSERT INTO databricks_workspace.marketplace.provider_listings (
deployment_name,
data__listing
)
SELECT
'{{ deployment_name }}',
'{{ listing }}'
;
- name: your_resource_model_name
props:
- name: listing
value:
id: string
summary:
name: string
subtitle: string
status: DRAFT
share:
name: string
type: SAMPLE
provider_region:
cloud: string
region: string
setting:
visibility: PUBLIC
created_at: 0
created_by: string
updated_at: 0
updated_by: string
published_at: 0
published_by: string
categories:
- ADVERTISING_AND_MARKETING
listingType: STANDARD
created_by_id: 0
updated_by_id: 0
provider_id: string
exchange_ids:
- string
git_repo:
git_repo_url: string
detail:
description: string
terms_of_service: string
documentation_link: string
support_link: string
file_ids:
- string
privacy_policy_link: string
embedded_notebook_file_infos:
- id: string
marketplace_file_type: PROVIDER_ICON
file_parent:
parent_id: string
file_parent_type: PROVIDER
mime_type: string
download_link: string
created_at: 0
updated_at: 0
display_name: string
status: FILE_STATUS_PUBLISHED
status_message: string
geographical_coverage: string
cost: FREE
pricing_model: string
update_frequency:
interval: 0
unit: NONE
collection_granularity:
interval: 0
unit: NONE
collection_date_start: 0
collection_date_end: 0
data_source: string
size: 0.1
assets:
- ASSET_TYPE_GIT_REPO
license: string
tags:
- tag_name: LISTING_TAG_TYPE_LANGUAGE
tag_values:
- string
UPDATE
example
Updates a provider_listings
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.marketplace.provider_listings
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';
DELETE
example
Deletes a provider_listings
resource.
/*+ delete */
DELETE FROM databricks_workspace.marketplace.provider_listings
WHERE id = '{{ id }}' AND
deployment_name = '{{ deployment_name }}';