DESCRIBE SECRET

statementsupportedIntegrations, network & secrets

docs.snowflake.com ↗

Object: SECRET

Describes the properties of a secret. DESCRIBE can be abbreviated to DESC.

Syntax

{ DESC | DESCRIBE } SECRET <name>

Parameters

NameRequiredDescription
nameSpecifies the identifier for the secret to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

Usage notes

Output

The command output provides secret properties and metadata in the following columns: Column | Description created_on | Date and time when the secret was created. name | Name of the secret. schema_name | Name of the schema that contains the secret. database_name | Name of the database that contains the secret. owner | Name of the role that owns the secret. comment | Comment for the secret or NULL if a comment is not specified. secret_type | Either OAUTH2, PASSWORD, GENERIC, SYMMETRIC_KEY, CLOUD_PROVIDER_TOKEN, or WORKLOAD_IDENTITY_FEDERATION. username | The username that is stored in the secret. oauth_access_token_expiry_time | The timestamp as a string when the OAuth access token expires. oauth_refresh_token_expiry_time | The timestamp as a string when the OAuth refresh token expires or NULL if the secret does not store this value. oauth_scopes | A comma-separated list of scopes to use when making a request from the OAuth server by a role with USAGE on the integration during the OAuth client credentials flow or NULL if there are no scopes. integration_name | The name of the External API Authentication integration that is referenced in the secret or NULL if the secret does not reference an External API Authentication integration. algorithm | The algorithm used, for symmetric key secrets. key_length | Length of the key used, for symmetric key secrets. workload_identity_federation_issuer | Issuer URL of Snowflake as the OIDC provider, for workload identity federation secrets. Give this value to the external service so it can compare it to the iss claim of the ID token. workload_identity_federation_subject | Identifier of the workload as the OIDC client, for workload identity federation secrets. Give this value to the external service so it can compare it to the sub claim of the ID token.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes USAGE | Secret | Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by