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.