Project

General

Profile

Actions

Feature #1526

closed

Addition of classes/puppetclasses to hostgroup/REST

Added by Geir Hedemark about 12 years ago. Updated about 7 years ago.

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

Description

I am trying to use the REST api to create a host group programmatically. I would like to create the host group with a number of puppet classes attached, either directly or through issuing separate "add puppet class to host group"-style requests after creating the host group.

Is there functionality for this in the API? If there is, it does not seem to be documented, and the codebase is not helpful in determining whether this is possible. If this is the case, please change this request into a request for improvement of the documentation.

If there is no functionality for this, I would like to see it appear at some point, please.

We are using foreman 0.4.2.


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Feature #1599: Ability to add classes to a host via the APIDuplicate05/02/2012Actions
Is duplicate of Foreman - Feature #2250: API for adding/removing puppetclasses from hosts and hostgroupsClosedJoseph Magen02/25/2013Actions
Actions

Also available in: Atom PDF