The most recent releases of puppetserver have an API endpoint specifically designed for this usecase: https://puppet.com/docs/puppetserver/latest/puppet-api/v4/catalog.html
You'll also need to enable access to that endpoint in auth.conf for the server you want to access that API from. You can experiment with the certless catalog indirector from https://github.com/puppetlabs/ace/blob/master/lib/puppet/indirector/catalog/certless.rbto integrate into the CLI you're asking about, but that'll likely require some work to pass through the required fields. Cheers, David On Fri, 13 Sep 2019 at 20:09, Matt Zagrabelny <mzagr...@d.umn.edu> wrote: > Greetings, > > I'm using puppet 5.5.10 (Debian Buster). > > From the puppet master system, I'm trying to get all the resources in a > catalog for a given node. > > On a node "foo.example.com" I can with: > > foo# puppet catalog find --terminus json | wc -l > 6271 > > but on the master I've tried: > > puppet# puppet catalog find --terminus json foo.example.com | wc -l > 0 > > If I try a rest terminus I get: > > puppet# puppet catalog find --terminus rest foo.example.com | wc -l > Error: Could not call 'find' on 'catalog': Error 403 on SERVER: Not > Authorized: Forbidden request: /puppet/v3/catalog/git.d.umn.edu [find] > Error: Could not call 'find' on 'catalog': Error 403 on SERVER: Not > Authorized: Forbidden request: /puppet/v3/catalog/git.d.umn.edu [find] > Error: Try 'puppet help catalog find' for usage > > Any ideas on how to get a node's catalog from the master? > > Thanks, > > -m > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAOLfK3Xf8ePFU33PoOv4w55DYnuLOw7qN7RYVjSE20ZUJKAvyw%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CAOLfK3Xf8ePFU33PoOv4w55DYnuLOw7qN7RYVjSE20ZUJKAvyw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CALF7fHZkrAO0NRbuO2aa8-tX%3D1C00xh5Yxpa1Hn8SdmSq5yK9Q%40mail.gmail.com.