Last active
August 29, 2015 13:56
-
-
Save kbarber/9121898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # curl -vvv -G 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["in", "name", ["extract", "certname", ["select-resources", ["=", "tag", "asdf"]]]]' | |
| * About to connect() to localhost port 8080 (#0) | |
| * Trying ::1... | |
| * connected | |
| * Connected to localhost (::1) port 8080 (#0) | |
| > GET /v3/nodes?query=%5B%22in%22%2C%20%22name%22%2C%20%5B%22extract%22%2C%20%22certname%22%2C%20%5B%22select-resources%22%2C%20%5B%22%3D%22%2C%20%22tag%22%2C%20%22asdf%22%5D%5D%5D%5D HTTP/1.1 | |
| > User-Agent: curl/7.26.0 | |
| > Host: localhost:8080 | |
| > Accept: */* | |
| > | |
| * additional stuff not fine transfer.c:1037: 0 0 | |
| * HTTP 1.1 or later with persistent connection, pipelining supported | |
| < HTTP/1.1 200 OK | |
| < Date: Thu, 20 Feb 2014 19:55:08 GMT | |
| < Content-Type: application/json; charset=utf-8 | |
| < Content-Length: 210 | |
| < Server: Jetty(7.x.y-SNAPSHOT) | |
| < | |
| [ { | |
| "name" : "puppetdb1.vm", | |
| "deactivated" : null, | |
| "catalog_timestamp" : "2014-02-20T19:54:44.499Z", | |
| "facts_timestamp" : "2014-02-20T19:54:43.589Z", | |
| "report_timestamp" : "2014-02-20T19:54:41.278Z" | |
| * Connection #0 to host localhost left intact | |
| } ]* Closing connection #0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # curl -vvv -G 'http://localhost:8080/v3/resources' --data-urlencode 'query=["=", "tag", "asdf"]' | |
| * About to connect() to localhost port 8080 (#0) | |
| * Trying ::1... | |
| * connected | |
| * Connected to localhost (::1) port 8080 (#0) | |
| > GET /v3/resources?query=%5B%22%3D%22%2C%20%22tag%22%2C%20%22asdf%22%5D HTTP/1.1 | |
| > User-Agent: curl/7.26.0 | |
| > Host: localhost:8080 | |
| > Accept: */* | |
| > | |
| * additional stuff not fine transfer.c:1037: 0 0 | |
| * HTTP 1.1 or later with persistent connection, pipelining supported | |
| < HTTP/1.1 200 OK | |
| < Date: Thu, 20 Feb 2014 19:56:28 GMT | |
| < Content-Type: application/json; charset=utf-8 | |
| < Content-Length: 328 | |
| < Server: Jetty(7.x.y-SNAPSHOT) | |
| < | |
| [ { | |
| "certname" : "puppetdb1.vm", | |
| "resource" : "fcb3f6079d4f744ef6fab722da2fe899d1016e37", | |
| "title" : "asdf", | |
| "parameters" : { | |
| "tag" : "asdf" | |
| }, | |
| "type" : "Notify", | |
| "exported" : false, | |
| "line" : 10, | |
| "file" : "/etc/puppet/manifests/nodes.pp", | |
| "tags" : [ "node", "puppetdb1.vm", "notify", "asdf", "class" ] | |
| * Connection #0 to host localhost left intact | |
| } ]* Closing connection #0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment