Skip to content

Instantly share code, notes, and snippets.

@wkalt
Created July 29, 2014 00:03
Show Gist options
  • Save wkalt/dc5d04ebf6cb4ff4f823 to your computer and use it in GitHub Desktop.
Save wkalt/dc5d04ebf6cb4ff4f823 to your computer and use it in GitHub Desktop.
[~/Documents/puppetdb] (ticket/master/pdb-772-change-facts) $ curl -X GET http://localhost:8080/v4/fact-nodes --data-urlencode 'query=["=","name","my_structured_fact"]'
[ {
"value" : {
"f" : "",
"b" : {
"g" : "",
"e" : [ 3.14, 2.71 ],
"d" : "bar",
"c" : [ 1, 2, 3 ]
},
"a" : "foo"
},
"name" : "my_structured_fact",
"environment" : "production",
"certname" : "mbp.local"
} ][~/Documents/puppetdb] (ticket/master/pdb-772-change-facts)curl -X GET http://localhost:8080/v3/fact-nodes --data-urlencode 'query=["=","name","my_structured_fact"]'
[ {
"value" : "{\"f\":\"\",\"b\":{\"g\":\"\",\"e\":[3.14,2.71],\"d\":\"bar\",\"c\":[1,2,3]},\"a\":\"foo\"}",
"name" : "my_structured_fact",
"certname" : "mbp.local"
} ][~/Documents/puppetdb] (ticket/master/pdb-772-change-facts) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment