Categories:

System functions (System Information)

SYSTEM$GET_SECURITY_INTEGRATIONS_FOR_API_PROVIDER

For a specified API provider, lists the external secret provider security integrations visible to the current role.

Syntax

SYSTEM$GET_SECURITY_INTEGRATIONS_FOR_API_PROVIDER( '<api_provider>' )

Arguments

api_provider

Provider value. Specify one of these case-insensitive values:

  • AWS_SECRETS_MANAGER
  • AZURE_KEY_VAULT
  • GCP_SECRET_MANAGER

Returns

Returns a JSON array of matching integration names. The result includes the integrations with TYPE = API_AUTHENTICATION and AUTH_TYPE = WORKLOAD_IDENTITY_FEDERATION that use the specified provider and are visible to the current role.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum:

PrivilegeObjectNotes
USAGEIntegrationThe result includes integrations on which the current role has this privilege, including through role inheritance.

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.

Usage notes

  • The provider value is case-insensitive.
  • An empty or unsupported provider value produces an error.
  • An empty JSON array means that no matching integration is visible to the current role.

Examples

List visible AWS Secrets Manager integrations:

SELECT SYSTEM$GET_SECURITY_INTEGRATIONS_FOR_API_PROVIDER('AWS_SECRETS_MANAGER');