Skip to main content

provider_files

Operations on a provider_files resource.

Overview

Nameprovider_files
TypeResource
Iddatabricks_workspace.marketplace.provider_files

Fields

NameDatatype
idstring
created_atinteger
display_namestring
download_linkstring
file_parentobject
marketplace_file_typestring
mime_typestring
statusstring
status_messagestring
updated_atinteger

Methods

NameAccessible byRequired ParamsDescription
getSELECTfile_id, deployment_nameGet a file
listSELECTdeployment_nameList files attached to a parent entity.
createINSERTdeployment_nameCreate a file. Currently, only provider icons and attached notebooks are supported.
deleteDELETEfile_id, deployment_nameDelete a file

SELECT examples

SELECT
id,
created_at,
display_name,
download_link,
file_parent,
marketplace_file_type,
mime_type,
status,
status_message,
updated_at
FROM databricks_workspace.marketplace.provider_files
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

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

/*+ create */
INSERT INTO databricks_workspace.marketplace.provider_files (
deployment_name,
data__file_parent,
data__marketplace_file_type,
data__mime_type,
data__display_name
)
SELECT
'{{ deployment_name }}',
'{{ file_parent }}',
'{{ marketplace_file_type }}',
'{{ mime_type }}',
'{{ display_name }}'
;

DELETE example

Deletes a provider_files resource.

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