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
}
]
}
Information about the account’s 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
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
The maximum number of items.
Offset relative to the beginning of list.
OK.
The response is of type object
.
Was this page helpful?