{"id":290,"date":"2020-09-02T17:49:20","date_gmt":"2020-09-02T22:49:20","guid":{"rendered":"https:\/\/www.paulreed.ca\/?p=290"},"modified":"2020-09-02T17:49:21","modified_gmt":"2020-09-02T22:49:21","slug":"puppet-enterprise-api-playground","status":"publish","type":"post","link":"https:\/\/paulreed.ca\/?p=290","title":{"rendered":"Puppet Enterprise API Playground"},"content":{"rendered":"\n<p>I&#8217;ve had a lot of recent requests from my customers for some better examples of Puppet API calls with AST and PQL queries.<\/p>\n\n\n\n<p>To that end, I&#8217;ve created a quick github repository with some better example scripts for Powershell and Curl. You can find the git repo here: <a href=\"https:\/\/github.com\/psreed\/puppet_enterprise_api_playground\">https:\/\/github.com\/psreed\/puppet_enterprise_api_playground<\/a><\/p>\n\n\n\n<p>In addition, since most of the Puppet APIs spit out JSON format, I&#8217;d recommend using &#8220;Miller&#8221; to manipulate the outputs if you need to manipulate the data further before handing over to other APIs, Databases or report files (i.e. CSV\/TSV, etc..). You can find Miller here: <a href=\"https:\/\/github.com\/johnkerl\/miller\">https:\/\/github.com\/johnkerl\/miller<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had a lot of recent requests from my customers for some better examples of Puppet API calls with AST and PQL queries. To that end, I&#8217;ve created a quick github repository with some better example scripts for Powershell and Curl. You can find the git repo here: https:\/\/github.com\/psreed\/puppet_enterprise_api_playground In addition, since most of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[65,67,58,55,66],"_links":{"self":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts\/290"}],"collection":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=290"}],"version-history":[{"count":1,"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions\/291"}],"wp:attachment":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}