Skip to main content

oauth_tokens

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

Overview​

Nameoauth_tokens
TypeResource
Idazure_extras.agrifood_farming.oauth_tokens

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_oauth_connection_linkselectendpointReturns Connection link needed in the OAuth flow.
list_rawexecendpointisValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a list of OAuthToken documents.
get_cascade_delete_job_detailsexecjob_id, endpointGet remove job for OAuth token.
create_cascade_delete_jobexecjob_id, partyId, oauthProviderId, endpointCreate remove job for 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
endpointstringThe service endpoint host (no scheme). (default: )
job_idstringJob Id supplied by end user. Required.
oauthProviderIdstringId of the OAuthProvider. Required.
partyIdstringId of the party. Required.
isValidbooleanIf the token object is valid. Default value is None.
maxCreatedDateTimestring (date-time)Maximum creation date of resource (inclusive). Default value is None.
maxLastModifiedDateTimestring (date-time)Maximum last modified date of resource (inclusive). Default value is None.
minCreatedDateTimestring (date-time)Minimum creation date of resource (inclusive). Default value is None.
minLastModifiedDateTimestring (date-time)Minimum last modified date of resource (inclusive). Default value is None.
skipTokenstringSkip token for getting next set of results. Default value is None.

SELECT examples​

Returns Connection link needed in the OAuth flow.

SELECT
value
FROM azure_extras.agrifood_farming.oauth_tokens
WHERE endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods​

Returns a list of OAuthToken documents.

EXEC azure_extras.agrifood_farming.oauth_tokens.list_raw
@endpoint='{{ endpoint }}' --required,
@isValid={{ isValid }},
@minCreatedDateTime='{{ minCreatedDateTime }}',
@maxCreatedDateTime='{{ maxCreatedDateTime }}',
@minLastModifiedDateTime='{{ minLastModifiedDateTime }}',
@maxLastModifiedDateTime='{{ maxLastModifiedDateTime }}',
@skipToken='{{ skipToken }}'
;