Skip to main content

analyst_tokens

Creates, updates, deletes, gets or lists an analyst_tokens resource.

Overview

Nameanalyst_tokens
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 identifier (orgname-accountname) (default: orgname-accountname)

SELECT examples

Internal endpoint to exchange a Cortex Analyst Oauth token

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