Skip to main content

access_restriction_u2fs

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

Overview​

Nameaccess_restriction_u2fs
TypeResource
Idovh.me.access_restriction_u2fs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerThe Id of the restriction
creation_datestring (date-time)Creation date (wire: creationDate)
descriptionstringDescription of this U2F key
last_used_datestring (date-time)Last used date (wire: lastUsedDate)
statusstringStatus of this account (disabled, enabled, needCodeValidation)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectx_pagination_modeList of U2F accounts
createinsertAdd a U2F access restriction
updateupdateidAlter this object properties
deletedeleteidDelete this Two-Factor
disableexecidDisable this U2F account
enableexecidEnable this U2F account
validateexecid, attestationObject, clientDataJSON, rawIdValidate your U2F account

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
idintegerThe Id of the restriction
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
id,
creation_date,
description,
last_used_date,
status
FROM ovh.me.access_restriction_u2fs
WHERE id = '{{ id }}' -- required
;

INSERT examples​

Add a U2F access restriction

INSERT INTO ovh.me.access_restriction_u2fs (
api_host
)
SELECT
'{{ api_host }}'
RETURNING
id,
rp_id,
user_id,
rp_name,
user_display_name,
user_name,
challenge
;

UPDATE examples​

Alter this object properties

UPDATE ovh.me.access_restriction_u2fs
SET
description = '{{ description }}'
WHERE
id = '{{ id }}' --required;

DELETE examples​

Delete this Two-Factor

DELETE FROM ovh.me.access_restriction_u2fs
WHERE id = '{{ id }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Disable this U2F account

EXEC ovh.me.access_restriction_u2fs.disable
@id='{{ id }}' --required
;