GET
/
iam
/
activity_log
/
logins
Last Login Time
curl --request GET \
  --url https://api.gcore.com/iam/activity_log/logins \
  --header 'Authorization: <api-key>'
{
  "count": 123,
  "next": "/activity_log/logins?offset=20&limit=10",
  "previous": "/activity_log/logins?offset=10&limit=10",
  "result": [
    {
      "id": 123456,
      "login_at": "2024-11-13 15:23:30+00:00",
      "ip_address": "192.168.1.1",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.5993.88 Safari/537.36",
      "is_successful": true,
      "auth_type": "OAUTH",
      "user": 123456
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

limit
integer

The maximum number of items.

offset
integer

Offset relative to the beginning of list.

Response

OK.

count
number

Total number of users

next
string

URL to the next users slice

Example:

"/activity_log/logins?offset=20&limit=10"

previous
string

URL to the previous users slice

Example:

"/activity_log/logins?offset=10&limit=10"

result
object[]