Skip to main content

logins

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

Overview

Namelogins
TypeResource
Idlinode.account.logins

Fields

The following fields are returned by SELECT queries:

The requested login object.

NameDatatypeDescription
idintegerRead-only The unique ID of this login object.
datetimestring (date-time)Read-only When the login was initiated. (example: 2018-01-01T00:01:01)
ipstring (ip)Read-only The remote IP address that requested the login. (example: 192.0.2.0)
restrictedbooleanRead-only True if the User that attempted the login was a restricted User, false otherwise.
statusstringRead-only Whether the login attempt succeeded or failed. (example: successful)
usernamestringRead-only The username of the User that attempted the login. (example: example_user)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_account_loginselectReturns a Login object that displays information about a successful login. The logins that can be viewed can be for any user on the account, and are not limited to only the logins of the user that is accessing this API endpoint. This operation can only be accessed by the unrestricted users of the account.

Learn more...

Learn more...
get_account_loginsselectReturns a collection of successful logins for all users on the account during the last 90 days. This operation can only be accessed by the unrestricted users of an 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 Login object that displays information about a successful login. The logins that can be viewed can be for any user on the account, and are not limited to only the logins of the user that is accessing this API endpoint. This operation can only be accessed by the unrestricted users of the account.

Learn more...

Learn more...

SELECT
id,
datetime,
ip,
restricted,
status,
username
FROM linode.account.logins
;