SYSTEM$LIST_EXTERNAL_SECRETS

functionnot supportedIntegrations, network & secretspreview

docs.snowflake.com ↗

System functions

Lists the secrets visible to an external secret provider security integration.

Syntax

supportedpartialnot supportednot scored

SYSTEM$LIST_EXTERNAL_SECRETS( '<integration_name>' [ , '<tag_or_label_key>' ] )

Parameters

NameRequiredDescription
integration_namerequiredName of an external secret provider security integration with TYPE = API_AUTHENTICATION and AUTH_TYPE = WORKLOAD_IDENTITY_FEDERATION.
tag_or_label_keyoptionalReturns only secrets that have the specified AWS or Azure tag key or Google Cloud label key.

Returns

Returns a JSON array of strings. The identifier format depends on the provider: The function handles provider pagination and returns all matching secrets that the cloud identity can list.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes USAGE | Integration | Required on the specified integration. The USAGE privilege authorizes the current role to use the integration, including through role inheritance. The cloud permissions granted to the integration’s federated identity determine which operations the integration can perform and which secrets it can access. 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.