DESCRIBE CREDENTIAL
適用於: Databricks SQL Databricks Runtime 10.4 LTS 和更新版本, Unity Catalog
傳回現有認證的元數據。 元數據資訊包括認證名稱、批注、擁有者和其他元數據。
語法
DESCRIBE [ STORAGE | SERVICE ] CREDENTIAL credential_name
Parameters
-
中繼存放區中現有認證的名稱。 如果名稱不存在,則會擲回例外狀況。
範例
> 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....