Get audit logs
AuthorizationBearer <token>
In: header
Query Parameters
userId?string
Format
"uuid"entityType?string
entityId?string
Format
"uuid"action?string
dateFrom?string
Format
"date-time"dateTo?string
Format
"date-time"page?integer
Default
1limit?integer
Default
50Response Body
curl -X GET "http://localhost:3000/api/audit/logs?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08&entityType=string&entityId=497f6eca-6276-4993-bfeb-53cbbbba6f08&action=string&dateFrom=2019-08-24T14%3A15%3A22Z&dateTo=2019-08-24T14%3A15%3A22Z&page=1&limit=50"fetch("http://localhost:3000/api/audit/logs?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08&entityType=string&entityId=497f6eca-6276-4993-bfeb-53cbbbba6f08&action=string&dateFrom=2019-08-24T14%3A15%3A22Z&dateTo=2019-08-24T14%3A15%3A22Z&page=1&limit=50")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "http://localhost:3000/api/audit/logs?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08&entityType=string&entityId=497f6eca-6276-4993-bfeb-53cbbbba6f08&action=string&dateFrom=2019-08-24T14%3A15%3A22Z&dateTo=2019-08-24T14%3A15%3A22Z&page=1&limit=50"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "http://localhost:3000/api/audit/logs?userId=497f6eca-6276-4993-bfeb-53cbbbba6f08&entityType=string&entityId=497f6eca-6276-4993-bfeb-53cbbbba6f08&action=string&dateFrom=2019-08-24T14%3A15%3A22Z&dateTo=2019-08-24T14%3A15%3A22Z&page=1&limit=50"
response = requests.request("GET", url)
print(response.text){
"auditLogs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
"entityType": "string",
"entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
"action": "string",
"oldValues": {},
"newValues": {},
"ipAddress": "string",
"userAgent": "string",
"timestamp": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"page": 0,
"limit": 0,
"total": 0,
"totalPages": 0
}
}