Project

General

Profile

Actions

Feature #11734

closed

API Resource for retrieving all hosts associated with a puppetclass

Added by Stefan Hölzle over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Stefan Hölzle over 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 #2

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Resolved

Yep, spot on.

Actions

Also available in: Atom PDF