Skip to content

Instantly share code, notes, and snippets.

@wkalt
Created August 18, 2014 19:36
Show Gist options
  • Save wkalt/01bbfa55b1434b0ac546 to your computer and use it in GitHub Desktop.
Save wkalt/01bbfa55b1434b0ac546 to your computer and use it in GitHub Desktop.
curl -X GET http://localhost:8080/v4/facts --data-urlencode 'query=["in", "name", ["extract", "name", ["select-fact-nodes",["=",["name","certname"],["trusted","mbp.local"]]]]]'
[ {
"value" : {
"authenticated" : "remote",
"certname" : "mbp.local"
},
"name" : "trusted",
"environment" : "production",
"certname" : "mbp.local"
} ]
@kbarber
Copy link

kbarber commented Aug 18, 2014

curl -X GET http://localhost:8080/v4/facts --data-urlencode 'query=["in", ["name","certname"], ["extract", ["name","certname"], ["select-fact-nodes",["and",["=","value","remote"],["=","path",["trusted","authentication"]]]]]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment