-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_doc_api_authentications_log.html.txt
73 lines (47 loc) · 2.66 KB
/
_doc_api_authentications_log.html.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Authentications Log API
Query audit log of authentication events (logins and logouts).
For each endpoint, a compound document is returned. The primary collection of
event objects is paginated, ordered by date descending. Secondary collections
of logins, accounts, page views, and users related to the returned events
are also included. Refer to the Logins, Accounts, Page Views, and Users APIs
for descriptions of the objects in those collections.
Authentication logs are stored for one year.
An AuthenticationEvent object looks like:
{
// timestamp of the event
"created_at": "2012-07-19T15:00:00-06:00",
// authentication event type ('login' or 'logout')
"event_type": "login",
// ID of the pseudonym (login) associated with the event
"pseudonym_id": 9478,
// ID of the account associated with the event. will match the account_id in the
// associated pseudonym.
"account_id": 2319,
// ID of the user associated with the event will match the user_id in the
// associated pseudonym.
"user_id": 362
}
Query by login.AuthenticationAuditApiController#for_login
GET /api/v1/audit/authentication/logins/:login_id
List authentication events for a given login.
Parameter | | Type | Description
start_time | | DateTime | The beginning of the time range from which you want events. Events are stored for one year.
end_time | | DateTime | The end of the time range from which you want events.
The beginning of the time range from which you want events. Events are stored for one year.
The end of the time range from which you want events.
Query by account.AuthenticationAuditApiController#for_account
GET /api/v1/audit/authentication/accounts/:account_id
List authentication events for a given account.
Parameter | | Type | Description
start_time | | DateTime | The beginning of the time range from which you want events. Events are stored for one year.
end_time | | DateTime | The end of the time range from which you want events.
The beginning of the time range from which you want events. Events are stored for one year.
The end of the time range from which you want events.
Query by user.AuthenticationAuditApiController#for_user
GET /api/v1/audit/authentication/users/:user_id
List authentication events for a given user.
Parameter | | Type | Description
start_time | | DateTime | The beginning of the time range from which you want events. Events are stored for one year.
end_time | | DateTime | The end of the time range from which you want events.
The beginning of the time range from which you want events. Events are stored for one year.
The end of the time range from which you want events.