Skip to main content

trusted_devices

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

Overview

Nametrusted_devices
TypeResource
Idlinode.profile.trusted_devices

Fields

The following fields are returned by SELECT queries:

The requested TrustedDevice object.

NameDatatypeDescription
idintegerRead-only The unique ID for this TrustedDevice.
createdstring (date-time)Read-only When this Remember Me session was started. This corresponds to the time of login with the "Remember Me" box checked. (example: 2018-01-01T01:01:01)
expirystring (date-time)Read-only When this TrustedDevice session expires. Sessions typically last 30 days. (example: 2018-01-31T01:01:01)
last_authenticatedstring (date-time)Read-only The last time this TrustedDevice was successfully used to authenticate to login.linode.com. (example: 2018-01-05T12:57:12)
last_remote_addrstringRead-only The last IP Address to successfully authenticate with this TrustedDevice. (example: 203.0.113.1)
user_agentstringRead-only The User Agent of the browser that created this TrustedDevice session. (example: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 Vivaldi/2.1.1337.36)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeviceIdReturns a single active trusted device for your user.

Learn more...

Learn more...
listselectReturns a paginated list of active trusted devices for your user. Browsers with an active Remember Me Session are logged into your account until the session expires or is revoked.

Learn more...

Learn more...
deletedeletedeviceIdRevoke an active trusted device for your user. Once a trusted device is revoked, this device will have to log in again before accessing your account.

Learn more...

Learn more...

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
deviceIdstringThe ID of the TrustedDevice.

SELECT examples

Returns a single active trusted device for your user.

Learn more...

Learn more...

SELECT
id,
created,
expiry,
last_authenticated,
last_remote_addr,
user_agent
FROM linode.profile.trusted_devices
WHERE deviceId = '{{ deviceId }}' -- required
;

DELETE examples

Revoke an active trusted device for your user. Once a trusted device is revoked, this device will have to log in again before accessing your account.

Learn more...

Learn more...

DELETE FROM linode.profile.trusted_devices
WHERE deviceId = '{{ deviceId }}' --required
;