Filtering audit API to date ranges / pagination
In the Audit API endpoints, there isn't much info on how I can filter the response in my request.
https://docs.celigo.com/hc/en-us/articles/7708497540123-Audit-API-endpoints
This informational page: https://docs.celigo.com/hc/en-us/articles/6514515710107 says that a max of 1000 records are produced by the API response. Given this I have a couple of questions.
- In the UI you can adjust the custom date field to get records for a given date range. Can I pass some parameters or headers to request only logs for a given date range via the various audit apis?
- If in the above example the date range I am interested in produces more than 1000 records, can I page through them to request more?
Thanks!
0
Comments
Jeremy Nelson [Updated on Dec 13th] We currently do support filtering the data from the API by dates (see The responses below) . The good news is that we are working on Audit log so that you are no longer bound by UI limitation (i.e can only see up to 1500 records at a time). This enhancement is targeted for our January 2023 release.
Also, we have a product portal that you can find out what features are bing planned or ideas that need input from our users. See image below how to get to our product portal and browse for ideas and vote...
Thanks for the response viliandy leonardo Do I understand correctly that:
Jeremy Nelson
I will have the team in charge of this enhancement to review your follow up questions and respond.
Thanks
Jeremy Nelson, it is possible to page through the audit endpoint. In the response header, there is a link to the next page. Now, I'm not aware of any current filter parameters, but have asked internally.
When I look at the results I get from this
I only get a list of resource flow records like the below, with nothing else. There is no paging detail here.
It is in the HTTP response "headers".
Ah! ok thanks! I will now await if there is a way to grab specific dates. Thank you!
Hello Jeremy Nelson
I hope this information is helpful, please let me know if you have any further questions. I will be happy assist.
Thank you.
Hello Jeremy Nelson
Here is an example of how the request URI appears with a date filter added as a parameter.
Example: https://api.integrator.io/v1/flows/<_id>/audit?from=YYYY-MM-DD&to=YYYY-MM-DD
Note: <_id> is the flow-id
Thank you.
Please sign in to leave a comment.