Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how to write curl command for getting data which updated in last 10 min

how to write curl command for getting data which updated in last 10 min

Explorer
i have tried these two curl command but not getting correct response
 
 curl --request GET 'https://localhost:8080/api/alarms?sort-by=lastReceiveTime&from-date=date -d'now-10 minutes'' -H 'Authorization: Key demo-key

curl --request GET 'https://localhost:8080/api/alarms?sort-by=lastReceiveTime&from-date="'"$(date --utc +%FT%T.%3NZ) -d 'now-10 minutes'"'"' -H 'Authorization: Key demo-key'

this command gives all alarm ...but we want only those alarm which came in last 10 min. if this url is working then i will use in http invoke processor that why i have put here this query.

Don't have an account?
Coming from Hortonworks? Activate your account here