Actions
Feature #11734
closedAPI Resource for retrieving all hosts associated with a puppetclass
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
I couldn't find an easy way to get a list of all hosts for a puppetclass.
I guess the following API call would fit:
GET /api/puppetclasses/:puppetclass_id/hosts
Updated by Stefan Hölzle about 9 years ago
Well, I just figured out I could simply use the search function in the API v2:
GET /api/v2/hosts?search=class+%3D+somepuppetclass
Thus, from my side you may forget about this feature request.
Actions