snowflake_credentials: Get credentials for a Snowflake connection

View source: R/credentials.R

snowflake_credentialsR Documentation

Get credentials for a Snowflake connection

Description

Get credentials for a Snowflake connection

Usage

snowflake_credentials(params, role = NULL, spcs_endpoint = NULL, ...)

Arguments

params

a list of connection parameters from 'snowflake_connection()

role

a snowflake entity

spcs_endpoint

a Snowpark Container Services ingress URL, formatted (*-accountname.snowflakecomputing.app)

...

Additional Snowflake connection parameters

Value

A list of HTTP headers.

Examples


# Obtain authentication headers for accessing Snowflake APIs
snowflake_credentials(
 snowflake_connection()
)


# If the application is in Snowpark Container Services,
# a different collection of headers are returned:
snowflake_credentials(
 snowflake_connection(),
 spcs_endpoint = "https://example-accountname.snowflakecomputing.app"
)


snowflakeauth documentation built on June 19, 2025, 5:08 p.m.