Bug 1162143

Summary: Missing API call to list config_template combinations per hostgroup or environment
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: APIAssignee: Dominic Cleal <dcleal>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, bkearney
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-01 12:39:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122832    

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