Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1162143 - Missing API call to list config_template combinations per hostgroup or environment
Summary: Missing API call to list config_template combinations per hostgroup or enviro...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Dominic Cleal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2014-11-10 11:24 UTC by Peter Vreman
Modified: 2019-09-26 13:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-01 12:39:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Vreman 2014-11-10 11:24:11 UTC
Description of problem:
The template combinations provide a relation between hostgroup or environment and the template. Currently only retrieval of combinations is possible by specifying the template_id:

GET /api/v2/config_templates/:config_template_id/template_combinations

There are no API requests available to search per hostgroup_id or environment_id


This makes it complex to retrieve all combinations from the hostgroup to templates to analyse which combinations are existing.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2014-11-10 11:33:05 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Peter Vreman 2014-11-10 12:05:10 UTC
There is no index function for /api/v2/template_combinations, it has only Show ID and Delete ID

Comment 4 Bryan Kearney 2016-07-08 20:29:51 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 6 Peter Vreman 2016-12-01 12:39:06 UTC
This is released in 6.2. There are much more API access points to retrieve the tempalte combinations:

 Template combinations
Resource 	Description
GET /api/provisioning_templates/:provisioning_template_id/template_combinations 	List template combination
GET /api/hostgroups/:hostgroup_id/template_combinations 	List template combination
GET /api/environments/:environment_id/template_combinations 	List template combination
POST /api/provisioning_templates/:provisioning_template_id/template_combinations 	Add a template combination
POST /api/hostgroups/:hostgroup_id/template_combinations 	Add a template combination
POST /api/environments/:environment_id/template_combinations 	Add a template combination
GET /api/template_combinations/:id 	Show template combination
GET /api/provisioning_templates/:provisioning_template_id/template_combinations/:id 	Show template combination
GET /api/hostgroups/:hostgroup_id/template_combinations/:id 	Show template combination
GET /api/environments/:environment_id/template_combinations/:id 	Show template combination
PUT /api/provisioning_templates/:provisioning_template_id/template_combinations/:id 	Update template combination
PUT /api/hostgroups/:hostgroup_id/template_combinations/:id 	Update template combination
PUT /api/environments/:environment_id/template_combinations/:id 	Update template combination
DELETE /api/template_combinations/:id 	Delete a template combination


Note You need to log in before you can comment on or make changes to this bug.