yubikey_otp_tokens
Creates, updates, deletes, gets or lists a yubikey_otp_tokens resource.
Overview​
| Name | yubikey_otp_tokens |
| Type | Resource |
| Id | okta.org.yubikey_otp_tokens |
Fields​
The following fields are returned by SELECT queries:
- get_yubikey_otp_token_by_id
- list_yubikey_otp_tokens
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the token (example: ykkwcx13nrDq8g4oy0g3) |
_embedded | object | |
_links | object | Specifies 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. |
created | string (date-time) | Timestamp when the token was created (example: 2022-08-25T00:31:00.000Z) |
lastUpdated | string (date-time) | Timestamp when the token was last updated (example: 2022-08-25T00:31:00.000Z) |
lastVerified | string (date-time) | Timestamp when the token was last verified (example: 2022-08-25T00:31:00.000Z) |
profile | object | Specified profile information for token |
status | string | Token status (BLOCKED, UNASSIGNED, ACTIVE, REVOKED, DELETED, INACTIVE) |
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the token (example: ykkwcx13nrDq8g4oy0g3) |
_embedded | object | |
_links | object | Specifies 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. |
created | string (date-time) | Timestamp when the token was created (example: 2022-08-25T00:31:00.000Z) |
lastUpdated | string (date-time) | Timestamp when the token was last updated (example: 2022-08-25T00:31:00.000Z) |
lastVerified | string (date-time) | Timestamp when the token was last verified (example: 2022-08-25T00:31:00.000Z) |
profile | object | Specified profile information for token |
status | string | Token status (BLOCKED, UNASSIGNED, ACTIVE, REVOKED, DELETED, INACTIVE) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_yubikey_otp_token_by_id | select | tokenId, subdomain | Retrieves the specified YubiKey OTP token by id | |
list_yubikey_otp_tokens | select | subdomain | after, expand, filter, forDownload, limit, sortBy, sortOrder | Lists all YubiKey OTP tokens |
upload_yubikey_otp_token_seed | exec | subdomain | after, expand, filter, forDownload, limit, sortBy, sortOrder | Uploads 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.
| Name | Datatype | Description |
|---|---|---|
subdomain | string | (default: my-org) |
tokenId | string | The YubiKey OTP token ID |
after | string | Specifies the pagination cursor for the next page of tokens |
expand | string | Embeds the user resource if the YubiKey token is assigned to a user and expand is set to user |
filter | string | The expression used to filter tokens |
forDownload | string | Returns tokens in a CSV to download instead of in the response. When you use this query parameter, the limit default changes to 1000. |
limit | integer | Specifies the number of results per page |
sortBy | string | The value of how the tokens are sorted |
sortOrder | string | Specifies the sort order, either ASC or DESC |
SELECT examples​
- get_yubikey_otp_token_by_id
- list_yubikey_otp_tokens
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
;
Lists all YubiKey OTP tokens
SELECT
id,
_embedded,
_links,
created,
lastUpdated,
lastVerified,
profile,
status
FROM okta.org.yubikey_otp_tokens
WHERE subdomain = '{{ subdomain }}' -- required
AND after = '{{ after }}'
AND expand = '{{ expand }}'
AND filter = '{{ filter }}'
AND forDownload = '{{ forDownload }}'
AND limit = '{{ limit }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
;
Lifecycle Methods​
- upload_yubikey_otp_token_seed
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 }}"
}'
;