analyst_tokens
Creates, updates, deletes, gets or lists an analyst_tokens resource.
Overview
| Name | analyst_tokens |
| Type | Resource |
| Id | snowflake.cortex.analyst_tokens |
Fields
The following fields are returned by SELECT queries:
- get_scoped_token
| Name | Datatype | Description |
|---|---|---|
expiration_seconds | integer | |
token | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_scoped_token | select | endpoint | Internal 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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | Organization and account identifier (orgname-accountname) (default: orgname-accountname) |
SELECT examples
- get_scoped_token
Internal endpoint to exchange a Cortex Analyst Oauth token
SELECT
expiration_seconds,
token
FROM snowflake.cortex.analyst_tokens
WHERE endpoint = '{{ endpoint }}' -- required
;