Profile
Logins List
https://api.linode.com/v4/profile/logins
Returns a collection of successful account logins from this user during the last 90 days.
Request Samples
- Shell
- CLI
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/profile/logins
Response Samples
- 200
- default
{
"data": [
{
"id": "",
"status": "successful",
"username": "example_user",
"datetime": "2018-01-01T00:01:01",
"ip": "192.0.2.0",
"restricted": true
}
],
"page": 1,
"pages": 1,
"results": 1
}
Responses
200: An array of successful account logins from this user during the last 90 days.
The unique ID of this login object.
Whether the login attempt succeeded or failed.
The username of the User that attempted the login.
When the login was initiated.
The remote IP address that requested the login.
True if the User that attempted the login was a restricted User, false otherwise.
The current page.
The total number of pages.
The total number of results.
default: Error
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.
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.