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_trusted_device
- get_devices
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) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_trusted_device | select | Returns a single active TrustedDevice for your User. Learn more... Learn more... | ||
get_devices | select | Returns 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_device | delete | 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... |
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 |
---|
SELECT
examples
- get_trusted_device
- get_devices
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;
Returns 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...
SELECT
data,
page,
pages,
results
FROM linode.profile.trusted_devices;
DELETE
examples
- delete_trusted_device
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;