Document toolboxDocument toolbox

Query Data from a Particular Time

Query Data from a Particular Time

You may want to regularly retrieve data with the same criteria. In this case, you’ll probably want to query by time period.

For example, you want to check for host MalwareC2DGA threats every hour. You might create a cron job that submits:

curl ‘https://csp.infoblox.com/tide/api/data/threats/host/hourly?imported_period=1h&class=MalwareC2DGA&data_format=csv' -H 'Authorization:Token token=<MYTOKEN>'

Or you could save the date/time of your last retrieval and use it with imported_from_date and the suitable time period:

curl ‘https://csp.infoblox.com/tide/api/data/threats/host/daily?imported_from_date=[last retrieval]&class=MalwareC2DGA&data_format=csv' -H 'Authorization:Token token=<MYTOKEN>'