ALTER STORAGE CREDENTIAL

Preview

Unity Catalog is in Public Preview. To participate in the preview, contact your Databricks representative.

Renames a storage credential.

Since: Databricks Runtime 10.3

Syntax

ALTER STORAGE CREDENTAL credential_name
  { RENAME TO to_credential_name |
    OWNER TO principal }

Parameters

  • credential_name

    Identifies the storage credential being altered.

  • RENAME TO to_credential_name

    Renames the credential a new name. The name must be unique among all credentials in the metastore.

  • OWNER TO principal

    Transfers ownership of the storage credential to principal.

Examples

> ALTER STORAGE CREDENTIAL street_cred RENAME TO good_cred;

> ALTER STORAGE CREDENTIAL street_cred OWNER TO `alf@melmak.et`