TimRiker
Cirrocumulus
Oct 16, 2018I added httpprofile to virtualservers.json and I use jq on the command like to run some validation queries. I download the file with curl or wget locally and then use things like this:
jq '.[] | select(.httpprofile | index("https")) | select(.port == "80") | {name,loadbalancer,httpprofile,port}' virtualservers.json |less -S
In this case, I'm looking for virtual servers listening on port 80 that have an https httpprofile attached to them. These might set the incorrect X-Forwarded-Proto header.
You could use a similar syntax to query the description field.
https://stedolan.github.io/jq/
Oh! and thanks to Patrik for merging my changes. 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)