Ask Your Question

Revision history [back]

It should be something like:

curl -G 'http://puppet-master:8081/pdb/query/v4/nodes' --data-urlencode 'query=["=", "certname", "magpie.example.com"]'

From the documentation.

It should be something like:

curl -G 'http://puppet-master:8081/pdb/query/v4/nodes' --data-urlencode 'query=["=", "certname", "magpie.example.com"]'

From the documentation.

It's not possible to pass complex queries in the URL query string; the HTTP POST method must be used, whereas that query string is a feature of the GET method. See here for more info.

Doing this programmatically is not hard, and well documented. Just look up "http post" for whichever language you're using.

It should be something like:

curl -G 'http://puppet-master:8081/pdb/query/v4/nodes' --data-urlencode 'query=["=", "certname", "magpie.example.com"]'

From the documentation.

It's not possible to pass complex queries in the URL query string; URL; the HTTP POST method must be used, and the query string is sent in the data; whereas that query string that appears at the end of the URL is a feature of the HTTP GET method. requests. See here for more info.

Doing this programmatically is not hard, and well documented. Just look up "http post" for whichever language you're using.