Skip to content

Query User Authentication Volume ​

Query the total number of authentications, successful authentications, and failed authentications within a specified time range.

Request Description ​

Permissions ​

The Identity Management API is authorized at the application level. Before calling the API, you need to set API permissions for different applications. For details, see API Permissions.

Permission CodeDescription
operation_log_readRead permission for log audit APIs
allRead/Write permission for all APIs
readRead permission for all read APIs

Request Headers ​

Parameter NameChinese NameRequiredTypeDescription
AuthorizationAuthorizationYesStringFormat: Bearer {access_token}
Content-TypeContent TypeYesStringFixed value: application/json; charset=utf-8

Request Parameters ​

Parameter NameChinese NameRequiredTypeDescription
start_timeStart timeYesStringFormat: yyyy-MM-dd HH:mm:ss
end_timeEnd timeYesStringFormat: yyyy-MM-dd HH:mm:ss
offsetPage numberYesIntStarting from page 0
target_typeTarget typeNoString—
target_nameTarget nameNoString—

Request Example ​

bash
GET https://{your_domain}/api/v2/tenant/logs/auth-num?start_time=2022-03-25%2000:00:00&end_time=2022-04-19%2010:50:59&offset=0&target_type=&target_name=

Response Example ​

Success Example ​

json
{
    "auth_total": 35,
    "auth_failed_total": 10,
    "auth_succeed_total": 25
}

Error Example ​

json
{
    "error_code": "1003",
    "error_msg": "The parameter limit is 10-100."
}

Response Parameters ​

Parameter NameChinese NameTypeDescription
auth_totalTotal authenticationsInt—
auth_failed_totalFailed authenticationsInt—
auth_succeed_totalSuccessful authenticationsInt—

BambooCloud IDaaS Open Platform