Skip to main content

yubikey_otp_tokens

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

Overview​

Nameyubikey_otp_tokens
TypeResource
Idokta.org.yubikey_otp_tokens

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the token (example: ykkwcx13nrDq8g4oy0g3)
_embeddedobject
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
createdstring (date-time)Timestamp when the token was created (example: 2022-08-25T00:31:00.000Z)
lastUpdatedstring (date-time)Timestamp when the token was last updated (example: 2022-08-25T00:31:00.000Z)
lastVerifiedstring (date-time)Timestamp when the token was last verified (example: 2022-08-25T00:31:00.000Z)
profileobjectSpecified profile information for token
statusstringToken status (BLOCKED, UNASSIGNED, ACTIVE, REVOKED, DELETED, INACTIVE)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_yubikey_otp_token_by_idselecttokenId, subdomainRetrieves the specified YubiKey OTP token by id
list_yubikey_otp_tokensselectsubdomainafter, expand, filter, forDownload, limit, sortBy, sortOrderLists all YubiKey OTP tokens
upload_yubikey_otp_token_seedexecsubdomainafter, expand, filter, forDownload, limit, sortBy, sortOrderUploads a seed for a user to enroll a YubiKey OTP

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
subdomainstring(default: my-org)
tokenIdstringThe YubiKey OTP token ID
afterstringSpecifies the pagination cursor for the next page of tokens
expandstringEmbeds the user resource if the YubiKey token is assigned to a user and expand is set to user
filterstringThe expression used to filter tokens
forDownloadstringReturns tokens in a CSV to download instead of in the response. When you use this query parameter, the limit default changes to 1000.
limitintegerSpecifies the number of results per page
sortBystringThe value of how the tokens are sorted
sortOrderstringSpecifies the sort order, either ASC or DESC

SELECT examples​

Retrieves the specified YubiKey OTP token by id

SELECT
id,
_embedded,
_links,
created,
lastUpdated,
lastVerified,
profile,
status
FROM okta.org.yubikey_otp_tokens
WHERE tokenId = '{{ tokenId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

Lifecycle Methods​

Uploads a seed for a user to enroll a YubiKey OTP

EXEC okta.org.yubikey_otp_tokens.upload_yubikey_otp_token_seed
@subdomain='{{ subdomain }}' --required,
@after='{{ after }}',
@expand='{{ expand }}',
@filter='{{ filter }}',
@forDownload='{{ forDownload }}',
@limit='{{ limit }}',
@sortBy='{{ sortBy }}',
@sortOrder='{{ sortOrder }}'
@@json=
'{
"serialNumber": "{{ serialNumber }}",
"publicId": "{{ publicId }}",
"privateId": "{{ privateId }}",
"aesKey": "{{ aesKey }}"
}'
;