genie_message_attachment_downloads
Creates, updates, deletes, gets or lists a genie_message_attachment_downloads resource.
Overview
| Name | genie_message_attachment_downloads |
| Type | Resource |
| Id | databricks_workspace.dashboards.genie_message_attachment_downloads |
Fields
The following fields are returned by SELECT queries:
- get_download
| Name | Datatype | Description |
|---|---|---|
statement_response | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_download | select | space_id, conversation_id, message_id, attachment_id, download_id, deployment_name | download_id_signature | After Generating a Full Query Result Download and |
generate_download | exec | space_id, conversation_id, message_id, attachment_id, deployment_name | Initiates a new SQL execution and returns a download_id and download_id_signature that you can use |
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 |
|---|---|---|
attachment_id | string | Attachment ID |
conversation_id | string | Conversation ID |
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
download_id | string | Download ID. This ID is provided by the Generate Download endpoint |
message_id | string | Message ID |
space_id | string | Genie space ID |
download_id_signature | string | JWT signature for the download_id to ensure secure access to query results |
SELECT examples
- get_download
After Generating a Full Query Result Download and
SELECT
statement_response
FROM databricks_workspace.dashboards.genie_message_attachment_downloads
WHERE space_id = '{{ space_id }}' -- required
AND conversation_id = '{{ conversation_id }}' -- required
AND message_id = '{{ message_id }}' -- required
AND attachment_id = '{{ attachment_id }}' -- required
AND download_id = '{{ download_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND download_id_signature = '{{ download_id_signature }}'
;
Lifecycle Methods
- generate_download
Initiates a new SQL execution and returns a download_id and download_id_signature that you can use
EXEC databricks_workspace.dashboards.genie_message_attachment_downloads.generate_download
@space_id='{{ space_id }}' --required,
@conversation_id='{{ conversation_id }}' --required,
@message_id='{{ message_id }}' --required,
@attachment_id='{{ attachment_id }}' --required,
@deployment_name='{{ deployment_name }}' --required
;