trusted_devices
Creates, updates, deletes, gets or lists a trusted_devices resource.
Overview
| Name | trusted_devices |
| Type | Resource |
| Id | linode.profile.trusted_devices |
Fields
The following fields are returned by SELECT queries:
- get
- list
The requested TrustedDevice object.
| Name | Datatype | Description |
|---|---|---|
id | integer | Read-only The unique ID for this TrustedDevice. |
created | string (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) |
expiry | string (date-time) | Read-only When this TrustedDevice session expires. Sessions typically last 30 days. (example: 2018-01-31T01:01:01) |
last_authenticated | string (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_addr | string | Read-only The last IP Address to successfully authenticate with this TrustedDevice. (example: 203.0.113.1) |
user_agent | string | Read-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) |
Returns a paginated list of TrustedDevice objects.
| Name | Datatype | Description |
|---|---|---|
id | integer | Read-only The unique ID for this TrustedDevice. |
created | string (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) |
expiry | string (date-time) | Read-only When this TrustedDevice session expires. Sessions typically last 30 days. (example: 2018-01-31T01:01:01) |
last_authenticated | string (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_addr | string | Read-only The last IP Address to successfully authenticate with this TrustedDevice. (example: 203.0.113.1) |
user_agent | string | Read-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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | deviceId | Returns a single active trusted device for your user. Learn more... Learn more... | |
list | select | Returns 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... | ||
delete | delete | deviceId | 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... |
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 |
|---|---|---|
deviceId | string | The ID of the TrustedDevice. |
SELECT examples
- get
- list
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
;
Returns 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...
SELECT
id,
created,
expiry,
last_authenticated,
last_remote_addr,
user_agent
FROM linode.profile.trusted_devices
;
DELETE examples
- delete
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
;