Skip to main content

storage_credentials

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

Overview

Namestorage_credentials
TypeResource
Iddatabricks_account.unity_catalog.storage_credentials

Fields

The following fields are returned by SELECT queries:

The storage credential was successfully retrieved.

NameDatatypeDescription
idstring
namestring
metastore_idstring
full_namestring
aws_iam_roleobject
commentstring
created_atinteger
created_bystring
isolation_modestring
ownerstring
read_onlyboolean
updated_atinteger
updated_bystring
used_for_managed_storageboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a storage credential from the metastore. The caller must be a metastore admin, the owner of the storage credential, or have a level of privilege on the storage credential.
listselectGets a list of all storage credentials that have been assigned to given metastore.
createinsertCreates a new storage credential. The request object is specific to the cloud:
updatereplaceUpdates a storage credential on the metastore. The caller must be the owner of the storage credential. If the caller is a metastore admin, only the
deletedeleteDeletes a storage credential from the metastore. The caller must be an owner of the storage credential.

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

SELECT examples

Gets a storage credential from the metastore. The caller must be a metastore admin, the owner of the storage credential, or have a level of privilege on the storage credential.

SELECT
id,
name,
metastore_id,
full_name,
aws_iam_role,
comment,
created_at,
created_by,
isolation_mode,
owner,
read_only,
updated_at,
updated_by,
used_for_managed_storage
FROM databricks_account.unity_catalog.storage_credentials;

INSERT examples

Creates a new storage credential. The request object is specific to the cloud:

INSERT INTO databricks_account.unity_catalog.storage_credentials (
data__credential_info
)
SELECT
'{{ credential_info }}'
RETURNING
credential_info
;

REPLACE examples

Updates a storage credential on the metastore. The caller must be the owner of the storage credential. If the caller is a metastore admin, only the

REPLACE databricks_account.unity_catalog.storage_credentials
SET
data__credential_info = '{{ credential_info }}'
WHERE
;

DELETE examples

Deletes a storage credential from the metastore. The caller must be an owner of the storage credential.

DELETE FROM databricks_account.unity_catalog.storage_credentials;