logins
Creates, updates, deletes, gets or lists a logins resource.
Overview
| Name | logins |
| Type | Resource |
| Id | linode.profile.logins |
Fields
The following fields are returned by SELECT queries:
- get_profile_login
- get_profile_logins
The requested login object.
| Name | Datatype | Description |
|---|---|---|
id | integer | Read-only The unique ID of this login object. |
datetime | string (date-time) | Read-only When the login was initiated. (example: 2018-01-01T00:01:01) |
ip | string (ip) | Read-only The remote IP address that requested the login. (example: 192.0.2.0) |
restricted | boolean | Read-only True if the User that attempted the login was a restricted User, false otherwise. |
status | string | Read-only Whether the login attempt succeeded or failed. (example: successful) |
username | string | Read-only The username of the User that attempted the login. (example: example_user) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_profile_login | select | Returns a login object displaying information about a successful account login from this user. Learn more... Learn more... | ||
get_profile_logins | select | Returns a collection of successful account logins from this user during the last 90 days. 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_profile_login
- get_profile_logins
Returns a login object displaying information about a successful account login from this user.
Learn more...
Learn more...
SELECT
id,
datetime,
ip,
restricted,
status,
username
FROM linode.profile.logins
;
Returns a collection of successful account logins from this user during the last 90 days.
Learn more...
Learn more...
SELECT
data,
page,
pages,
results
FROM linode.profile.logins
;