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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_yubikey_otp_tokensselectsubdomainLists all YubiKey OTP tokens
get_yubikey_otp_token_by_idselecttokenId, subdomainRetrieves the specified YubiKey OTP token by id
upload_yubikey_otp_token_seedexecsubdomainUploads 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
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)
tokenIdstringThe YubiKey OTP token ID

SELECT examples

Lists all YubiKey OTP tokens

SELECT
id,
_embedded,
_links,
created,
lastUpdated,
lastVerified,
profile,
status
FROM okta.org.yubikey_otp_tokens
WHERE 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
@@json=
'{
"serialNumber": "{{ serialNumber }}",
"publicId": "{{ publicId }}",
"privateId": "{{ privateId }}",
"aesKey": "{{ aesKey }}"
}';