Bug #12599
closedMissing API for associating config groups with hosts and hostgroups
Description
There is API to manage config group itself but it seems we don't provide a way how to associate it with a host and hostgroup. Also hammer commands would be nice.
Updated by Dominic Cleal almost 9 years ago
Though we're missing a CRUD interface for individual associations, the whole list of config groups can be set via config_group_ids
and config_group_names
attributes on both host and host groups.
Updated by Marek Hulán almost 9 years ago
It seems it's not documented https://github.com/theforeman/foreman/blob/develop/app/controllers/api/v2/hosts_controller.rb#L40
Updated by Dominic Cleal almost 9 years ago
Yeah, they're almost entirely missing. A few have been added over time where somebody has wanted it documented, but we've not done it wholesale.
#2945 added these magic attrs originally and #2931 put it into API responses consistently, but from what I remember of the discussions at the time, Joseph wanted to find a way to document it automatically, which hasn't happened. We've established a pretty comprehensive list in #7568 which could be copied to API docs.
Updated by Dominic Cleal almost 9 years ago
- Blocks Feature #7520: Config group commands and host/host group association added
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4176 added
Updated by Anonymous almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8f3993e35f6b9234f995481dc30369cf10ee1732.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 209