Skip to main content

STORAGE_CREDENTIALS

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 10.4 LTS and above

INFORMATION_SCHEMA.STORAGE_CREDENTIALS describes storage credentials.

Information is displayed only for storage credentials the user has permission to interact with.

This is an extension to the SQL Standard Information Schema.

important

Starting with Databricks Runtime 15.4, this relation is deprecated. Use INFORMATION_SCHEMA.CREDENTIALS instead.

Definition

The STORAGE_CREDENTIALS relation contains the following columns:

NameData typeNullableDescription
STORAGE_CREDENTIAL_IDSTRINGNoID of the storage credential.
STORAGE_CREDENTIAL_NAMESTRINGNoName of the storage credential.
STORAGE_CREDENTIAL_OWNERSTRINGNoOwner of the storage credential.
CREDENTIAL_TYPESTRINGNoType of the storage credential.
CREDENTIALSTRINGNoRedacted storage credential.
USED_FOR_MANAGED_STORAGESTRINGNoWhether this storage credential is used as the root credential of the metastore.
COMMENTSTRINGYesAn optional comment that describes the storage credential.
CREATEDTIMESTAMPNoTimestamp when the storage credential was created.
CREATED_BYSTRINGNoPrincipal who created the storage credential.
LAST_ALTEREDTIMESTAMPNoTimestamp when the storage credential was last altered in any way.
LAST_ALTERED_BYSTRINGNoPrincipal who last altered the storage credential.

Constraints

The following constraints apply to the STORAGE_CREDENTIALS relation:

ClassNameColumn ListDescription
Primary keySTORAGE_CREDENTIALS_PKSTORAGE_CREDENTIAL_ID, STORAGE_CREDENTIAL_NAMEUnique identifier for the storage credential.

Examples

SQL
> SELECT storage_credential_owner
FROM information_schema.storage_credentials