hi folks, I am trying to use puppetdb 1.3 API for querying the resources but it always gives 404 in my puppetdb logs. curl -X GET -H "Accept: application/json" http://localhost:8080/v2/nodes/node1.x.com/facts this gives the below 2 lines in logs 2013-07-15 15:27:18,425 DEBUG [1989408177@qtp-1572178076-14 - /v2/nodes/node1.x.com/facts] [mortbay.log] REQUEST /v2/nodes/node1.x.com/facts on org.mortbay.jetty.HttpConnection@6a525edc 2013-07-15 15:27:18,426 DEBUG [1989408177@qtp-1572178076-14 - /v2/nodes/node1.x.com/facts] [mortbay.log] RESPONSE /v2/node1.x.com/facts 404 2013-07-15 15:27:18,428 DEBUG [1989408177@qtp-1572178076-14] [mortbay.log] EOF But the following works fine. curl -X GET -H "Accept: application/json" http://localhost:8080/facts/node1.x.com Basically my intention is to see all the resources for a particular node. I am running this commands on puppet master which is the same server puppetdb exists. Please help me -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
anybody got any similar experience, please help me. Or if anybody got any sql query to pull the details of all the resources on an ode, that also will work for me. thanks so much watchman On Monday, July 15, 2013 3:42:02 PM UTC+10, watchman wrote:> > hi folks, > > I am trying to use puppetdb 1.3 API for querying the resources but it > always gives 404 in my puppetdb logs. > > curl -X GET -H "Accept: application/json" > http://localhost:8080/v2/nodes/node1.x.com/facts this gives the below 2 > lines in logs > > 2013-07-15 15:27:18,425 DEBUG [1989408177@qtp-1572178076-14 - /v2/nodes/ > node1.x.com/facts] [mortbay.log] REQUEST /v2/nodes/node1.x.com/facts on > org.mortbay.jetty.HttpConnection@6a525edc > 2013-07-15 15:27:18,426 DEBUG [1989408177@qtp-1572178076-14 - /v2/nodes/ > node1.x.com/facts] [mortbay.log] RESPONSE /v2/node1.x.com/facts 404 > 2013-07-15 15:27:18,428 DEBUG [1989408177@qtp-1572178076-14] [mortbay.log] > EOF > > But the following works fine. > > curl -X GET -H "Accept: application/json" > http://localhost:8080/facts/node1.x.com > > Basically my intention is to see all the resources for a particular node. > I am running this commands on puppet master which is the same server > puppetdb exists. > > > Please help me > > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
dont worry about this. Chatted with two awesome guys in puppet IRC and got the solution. It was a puppetdb version issue. On Tuesday, July 16, 2013 12:30:41 PM UTC+10, watchman wrote:> > anybody got any similar experience, please help me. > > Or if anybody got any sql query to pull the details of all the resources > on an ode, that also will work for me. > > thanks so much > watchman > > > > On Monday, July 15, 2013 3:42:02 PM UTC+10, watchman wrote: >> >> hi folks, >> >> I am trying to use puppetdb 1.3 API for querying the resources but it >> always gives 404 in my puppetdb logs. >> >> curl -X GET -H "Accept: application/json" >> http://localhost:8080/v2/nodes/node1.x.com/facts this gives the below 2 >> lines in logs >> >> 2013-07-15 15:27:18,425 DEBUG [1989408177@qtp-1572178076-14 - /v2/nodes/ >> node1.x.com/facts] [mortbay.log] REQUEST /v2/nodes/node1.x.com/facts on >> org.mortbay.jetty.HttpConnection@6a525edc >> 2013-07-15 15:27:18,426 DEBUG [1989408177@qtp-1572178076-14 - /v2/nodes/ >> node1.x.com/facts] [mortbay.log] RESPONSE /v2/node1.x.com/facts 404 >> 2013-07-15 15:27:18,428 DEBUG [1989408177@qtp-1572178076-14] >> [mortbay.log] EOF >> >> But the following works fine. >> >> curl -X GET -H "Accept: application/json" >> http://localhost:8080/facts/node1.x.com >> >> Basically my intention is to see all the resources for a particular node. >> I am running this commands on puppet master which is the same server >> puppetdb exists. >> >> >> Please help me >> >> >> >>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.