Skip to content

Instantly share code, notes, and snippets.

@flaviotorres
Created November 6, 2018 00:13
Show Gist options
  • Save flaviotorres/54886425896cd367ff00fcf83ccf80b6 to your computer and use it in GitHub Desktop.
Save flaviotorres/54886425896cd367ff00fcf83ccf80b6 to your computer and use it in GitHub Desktop.
querying foreman API
# query foreman audits API by: time > "Feb 1,2018" and action = create and type = host
curl -s -uUSER:$PW -XGET -k "https://foreman.com/api/audits?search=action=create,type=host,time>Feb,1&per_page=2035"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment