DESCRIBE CREDENTIAL
适用于: Databricks SQL Databricks Runtime 10.4 LTS 及更高版本 仅 Unity Catalog
返回现有凭证的元数据。 元数据信息包括凭据名称、注释、所有者和其他元数据。
语法
DESCRIBE [ STORAGE | SERVICE ] CREDENTIAL credential_name
参数
-
元存储中现有凭据的名称。 如果该名称不存在,则会引发异常。
示例
> DESCRIBE STORAGE CREDENTIAL good_cred;
name owner created_at created_by credential
--------- ------ ------------------------ ------------ ---------------------------------------------
good_cred admins 2022-01-01T08:00:00.0000 jane@doe.com AwsIamRole:arn:aws:iam:123456789012:roe/us....
> DESCRIBE SERVICE CREDENTIAL secrets;
name owner created_at created_by credential
--------- ------ ------------------------ ------------ ---------------------------------------------
secrets admins 2022-01-01T08:00:00.0000 jane@doe.com AwsIamRole:arn:aws:iam:123456789012:roe/us....
> DESCRIBE CREDENTIAL secrets;
name owner created_at created_by credential
--------- ------ ------------------------ ------------ ---------------------------------------------
secrets admins 2022-01-01T08:00:00.0000 jane@doe.com AwsIamRole:arn:aws:iam:123456789012:roe/us....