parsing data from the API using jq
I want to create 80 canned reports, one for each monitoring group. I don't want to do this by hand, that's what shell and the API is for.
This works ok:
But after that ..
- # curl https://www.site24x7.com/api/monitor_groups -H "Accept: application/json; version=2.0" -H "Authorization: Zoho-authtoken $token" | jq '.group_id'
- null
I'm reading the jq manual and tutorials but .. I could use a few tips, if you've got any.
Edit;
The point of the exercise is to pull in the monitor group ID, and display name, then use those values to create the report.