Hi Matt, You should be able to do that now that we've finished PDB-2634 <https://tickets.puppetlabs.com/browse/PDB-2634>, which is available in PuppetDB 6.7.0+.
The { } are still required, so a query could look like resources[certname, parameters.address] { type = "Postgresql::Server::Pg_hba_rule" and parameters.address ~ ".*" } On Fri, Dec 13, 2019 at 9:54 AM Matt Zagrabelny <mzagr...@d.umn.edu> wrote: > Greetings, > > I've looked through the puppetdb docs, in particular the PQL docs, to find > out if I can extract a single parameter in the return value(s). > > I have as a PQL: > > resources[parameters] { type = "Postgresql::Server::Pg_hba_rule" and > parameters.address ~ "."} > > I'd like to get the "address" parameter. So some pseudocode like: > > resources[parameters.address] > > I know I can post process the results, but is there a way to get a single > parameter in PQL? > > 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/CAOLfK3UZuh5jvdFjq5giQbifcM5RU6--oL-KDoLo0SuPMCu2KQ%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CAOLfK3UZuh5jvdFjq5giQbifcM5RU6--oL-KDoLo0SuPMCu2KQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- *Austin Blatt* Software Engineer austin.bl...@puppet.com -- 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/CADVW12PXbtWAgqcjoq3c8op%2BB5iNg-7616u2ZkVtkFbRgh%3DL3A%40mail.gmail.com.