Hi community,
We have a cloud Service from where we want to pull audit events. This REST API accepts in the request payload the date variable. We don't want to pull events that have already been pulled. This is an example to payload:
{
"fromDate": "2018-09-05 00:00:00",
"toDate": "2018-10-05 23:59:00",
"product": "XYZ",
}
We need something like this that changes every day:
fromDate_Variable = today – 2 days
$fromDate_Variable
2018-09-03 00:00:00
toDate_variable=today – 1 day
$toDate_Variable
2018-09-04 00:00:00
This payload only pulled events for previous day and are changing every day.
{
"fromDate": $ fromDate_Variable,
"toDate": $toDate_Variable,
"product": "XYZ",
}
Could you help me with any suggestions?
... View more