Bug 1290474
Summary: | [RFE] API endpoint to update content view of a host | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sergio G. <sgarciam> |
Component: | API - Content | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1.4 | CC: | bkearney, slutade |
Target Milestone: | Unspecified | Keywords: | FutureFeature, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/14625 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-07-17 14:40:17 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: |
Description
Sergio G.
2015-12-10 15:50:05 UTC
The /hosts api should support this.. but this did not make 6.2. Adding to 6.3 to get he hammer CLI and hosts api in there. This should back the hammer content-host update --content-view-id id --name name command Created redmine issue http://projects.theforeman.org/issues/14625 from this bug Per 6.3 planning, moving out non acked bugs to the backlog Upstream bug component is API - Content Upstream bug component is API Upstream bug component is API - Content Hi, On Satellite 6.3 we can use this API to update the host content view. # curl -X PUT -k -H 'Content-Type: application/json' -u admin:redhat https://satellite.example.com/api/v2/hosts/1 -d '{"id": 1,"host": {"content_facet_attributes": {"id": 1,"content_view_id": 12}}}' # curl -k -u admin:redhat https://satellite.example.com/api/v2/hosts/1 | json_reformat | grep -A5 content_facet_attribute Or the put method if using Rest Client. URL: https://satellite.example.com/api/hosts/3 Syntax: {"id": 1,"host": {"content_facet_attributes": {"id": 1,"content_view_id": 12}}} Where id is the host ID. this exists in 6.3. |