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
get_trusted_deviceselectReturns a single active TrustedDevice for your User.

Learn more...

Learn more...
get_devicesselectReturns a paginated list of active TrustedDevices 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...
delete_trusted_devicedeleteRevoke an active TrustedDevice for your User. Once a TrustedDevice is revoked, this device will have to log in again before accessing your Linode 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

SELECT examples

Returns a single active TrustedDevice for your User.

Learn more...

Learn more...

SELECT
id,
created,
expiry,
last_authenticated,
last_remote_addr,
user_agent
FROM linode.profile.trusted_devices;

DELETE examples

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

Learn more...

Learn more...

DELETE FROM linode.profile.trusted_devices;