Skip to main content

tokens

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

Overview

Nametokens
TypeResource
Idsnowflake.cortex_analyst.tokens

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
expiration_secondsinteger
tokenstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_scoped_tokenselectendpointInternal endpoint to exchange a Cortex Analyst Oauth token

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringOrganization and Account Name (default: orgid-acctid)

SELECT examples

Internal endpoint to exchange a Cortex Analyst Oauth token

SELECT
expiration_seconds,
token
FROM snowflake.cortex_analyst.tokens
WHERE endpoint = '{{ endpoint }}' -- required;