Profile

View Login

get
https://api.linode.com/v4/profile/logins/{loginId}

Returns a login object displaying information about a successful account login from this user.

Authorizations

Personal Access Token
OAuth: ( account:read_only)

Path Parameters

loginId
Required
integer

The ID of the login object to access.

Request Samples

curl -H "Authorization: Bearer $TOKEN" \
    https://api.linode.com/v4/profile/logins/1234

Response Samples

{
  "id": 1234,
  "username": "example_user",
  "datetime": "2018-01-01T00:01:01",
  "ip": "192.0.2.0",
  "restricted": true
}

Responses

200: The requested login object.

id
integer

The unique ID of this login object.

username
string

The username of the User that was logged into.

datetime
string <date-time>

When the login was initiated.

ip
string <ip>

The remote IP address that requested the login.

restricted
boolean

True if the User that was logged into was a restricted User, false otherwise.

default: Error

errors
array of objects
reason
string

What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.

field
string

The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.