Skip to main content

vw_credentials

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

Overview

Namevw_credentials
TypeView
Iddatabricks_account.provisioning.vw_credentials

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
credentials_idstringUnique identifier for the credential configuration.
credentials_namestringHuman-readable name of the credential configuration.
creation_timeintegerUnix timestamp (ms) when the credential configuration was created.
aws_role_arnstringARN of the AWS IAM role Databricks uses to manage resources in the customer account (AWS only).

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
credentials_id,
credentials_name,
creation_time,
aws_role_arn
FROM databricks_account.provisioning.vw_credentials
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
c.account_id,
c.credentials_id,
c.credentials_name,
c.creation_time,
JSON_EXTRACT(c.aws_credentials, '$.sts_role.role_arn') AS aws_role_arn
FROM databricks_account.provisioning.credentials c
WHERE account_id = '{{ account_id }}'