Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How can I get the nodes pinned in a node group via the REST API?

$
0
0
I'm currently running PE 2017.3.2. We want to dynamically unpin all nodes in a node group when the associated branch is removed by Code Manager when we delete a branch in our control repository. I found the API, https://puppet.com/docs/pe/2017.3/node_classifier_service_api.html, but I don't see how to get from group name/ID to pinned nodes. The Rules endpoint wouldn't help, since we're looking for nodes pinned by name. I found the endpoints to pin and unpin nodes (POST /v1/groups/ID/{pin,unpin}, respectively), but can't for the life of me figure out *which nodes are currently pinned*. Thanks in advance!

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>