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!
↧