@Generated public class TemporaryPathCredentialsAPI extends Object
Temporary path credentials ensure that data access is limited in scope and duration, reducing the risk of unauthorized access or misuse. To use the temporary path credentials API, a metastore admin needs to enable the external_access_enabled flag (off by default) at the metastore level. A user needs to be granted the EXTERNAL USE LOCATION permission by external location owner. For requests on existing external tables, user also needs to be granted the EXTERNAL USE SCHEMA permission at the schema level by catalog admin.
Note that EXTERNAL USE SCHEMA is a schema level permission that can only be granted by catalog admin explicitly and is not included in schema ownership or ALL PRIVILEGES on the schema for security reasons. Similarly, EXTERNAL USE LOCATION is an external location level permission that can only be granted by external location owner explicitly and is not included in external location ownership or ALL PRIVILEGES on the external location for security reasons.
This API only supports temporary path credentials for external locations and external tables, and volumes will be supported in the future.
| Constructor and Description |
|---|
TemporaryPathCredentialsAPI(ApiClient apiClient)
Regular-use constructor
|
TemporaryPathCredentialsAPI(TemporaryPathCredentialsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
GenerateTemporaryPathCredentialResponse |
generateTemporaryPathCredentials(GenerateTemporaryPathCredentialRequest request)
Get a short-lived credential for directly accessing cloud storage locations registered in
Databricks.
|
TemporaryPathCredentialsService |
impl() |
public TemporaryPathCredentialsAPI(ApiClient apiClient)
public TemporaryPathCredentialsAPI(TemporaryPathCredentialsService mock)
public GenerateTemporaryPathCredentialResponse generateTemporaryPathCredentials(GenerateTemporaryPathCredentialRequest request)
public TemporaryPathCredentialsService impl()
Copyright © 2026. All rights reserved.