Employee Identity (EIAM)
Query Authentication Count
Interface
# Permissions
The Identity Management API is authorized at the application level. Before calling an interface, you need to set interface permissions for different applications. For details, please refer to API Permissions.
| Permission Code | Description |
|---|---|
| operation_log_read | Read permission for the log audit interface |
| all | Read and write permissions for all interfaces |
| read | Permission for all read interfaces |
# Request Specification
GET https://{your_domain}/api/v2/tenant/logs/auth-num?start_time=2022-03-25 00:00:00&end_time=2022-04-19 10:50:59&offset=0&target_type=&target_name=
# Request Headers
| Parameter | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| Authorization | Authorization | Yes | String | Format: Bearer {access_token} |
| Content-Type | Content Type | Yes | String | Fixed value: application/json; charset=utf-8 |
# Request Example
None
# Request Parameters
| Parameter | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| start_time | Start Time | Yes | String | yyyy-MM-dd HH:mm:ss |
| end_time | End Time | Yes | String | yyyy-MM-dd HH:mm:ss |
| offset | Page Number | Yes | Int | Starts from page 0 |
| target_type | Target Type | No | String | |
| target_name | Target Name | No | String |
# Response Example
Correct Example:
HTTP/1.1 200 OK
{
"auth_total": 35,
"auth_failed_total": 10,
"auth_succeed_total": 25
}
Error Example:
HTTP/1.1 400 Bad Request
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# Response Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| auth_total | Authentication Total | Int | |
| auth_failed_total | Authentication Failure Count | Int | |
| auth_succeed_total | Authentication Success Count | Int |
