tokens
Creates, updates, deletes, gets or lists a tokens
resource.
Overview
Name | 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 Name (default: orgid-acctid) |
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;