Skip to main content

temporary_table_credentials

Creates, updates, deletes, gets or lists a temporary_table_credentials resource.

Overview

Nametemporary_table_credentials
TypeResource
Iddatabricks_workspace.catalog.temporary_table_credentials

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
generateinsertdeployment_nameGet a short-lived credential for directly accessing the table data on cloud storage. The metastore

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.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

INSERT examples

Get a short-lived credential for directly accessing the table data on cloud storage. The metastore

INSERT INTO databricks_workspace.catalog.temporary_table_credentials (
operation,
table_id,
deployment_name
)
SELECT
'{{ operation }}',
'{{ table_id }}',
'{{ deployment_name }}'
RETURNING
aws_temp_credentials,
azure_aad,
azure_user_delegation_sas,
expiration_time,
gcp_oauth_token,
r2_temp_credentials,
url
;