감사 API의 createdOndate 및 userName 필터의 예
userName 필드에 특정 값을 가진 사용자에 대해 지정된 날짜 범위의 감사 로그 항목을 검색하는 필터를 만듭니다.
"john,doe"
값이 있는 사용자에 대해 2020년 12월 1일부터 2020년 12월 31일까지의 실패한 로그인 시도를 식별합니다.요청 본문:
{
"sort": [
{
"field": "createdOn",
"direction": "desc"
}
],
"filter": {
"operator": "and",
"operands": [
{
"operator": "gt",
"field": "createdOn",
"value": "2020-12-01T00:00:00.001Z"
},
{
"operator": "lt",
"field": "createdOn",
"value": "2020-12-31T23:59:59.999Z"
},
{
"operator": "eq",
"field": "status",
"value": "Unsuccessful"
},
{
"operator": "substring",
"field": "activityType",
"value": "LOGIN"
},
{
"operator": "substring",
"field": "userName",
"value": "john,doe"
}
]
},
"page": {
"length": "1000",
"offset": "0"
}
}
이 요청은 이 Control Room 로그 항목의 731,148.339개 항목 중 3개의 감사 로그 항목을 식별했습니다.
응답 본문:
{
"page": {
"offset": 0,
"total": 731148339,
"totalFilter": 3
},
"list": [
{
"id": "kLjB8G4BFXSpOOjiomK1",
"eventDescription": "User does not exist in Control Room.",
"activityType": "LOGIN",
"environmentName": "",
"hostName": "50.xxx.xxx.xx",
"userName": "john,doe@mycompany.com",
"status": "Unsuccessful",
"source": "Control Room",
"objectName": "N/A",
"detail": "",
"createdOn": "2020-12-10T17:00:52Z",
"requestId": "3c0f8e47-5820-43e8-b2b3-83b2f1cb86c9",
"createdBy": "0"
},
{
"id": "SLjB8G4BFXSpOOjikl5i",
"eventDescription": "User does not exist in Control Room.",
"activityType": "LOGIN",
"environmentName": "",
"hostName": "50.xxx.xxx.xx",
"userName": "john,doe@mycompany.com",
"status": "Unsuccessful",
"source": "Control Room",
"objectName": "N/A",
"detail": "",
"createdOn": "2020-12-10T17:00:48Z",
"requestId": "eba3e5a7-0034-440a-a786-110a84fea7c9",
"createdBy": "0"
},
{
"id": "7bjB8G4BFXSpOOjicEGO",
"eventDescription": "User does not exist in Control Room.",
"activityType": "LOGIN",
"environmentName": "",
"hostName": "50.xxx.xxx.xx",
"userName": "john,doe",
"status": "Unsuccessful",
"source": "Control Room",
"objectName": "N/A",
"detail": "",
"createdOn": "2020-12-10T17:00:39Z",
"requestId": "64184450-aad5-4024-bcf5-491fb5276d0c",
"createdBy": "0"
}
]
}
REST API는 HTTP 응답 코드를 이용하여 각 요청에 응답합니다.
응답 코드는 API 응답 코드를 참고하십시오.