Bug 1421441
Summary: | [RFE] - API to associate a single host to a computer resource | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | vivpatil | ||||
Component: | API | Assignee: | satellite6-bugs <satellite6-bugs> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Daniel Lobato Garcia <dlobatog> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.2.2 | CC: | bkearney, dlobatog, jcallaha, jocke.martensson, mhulan, nshaik | ||||
Target Milestone: | Unspecified | Keywords: | FutureFeature | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/18064 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-09-04 19:08:45 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: | |||||||
Attachments: |
|
Comment 3
Daniel Lobato Garcia
2017-03-07 10:00:06 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18064 has been resolved. Created attachment 1319980 [details]
Import button
Failed verification. Tested on Satellite 6.3 - Snap 13. As you can see on the Screenshot, the feature is available through the UI - on 6.3 one can import just single hosts. But there is no API endpoint to do this. There's a workaround though. If you send a POST call to /hosts, containing the UUID of the VM ou want to import, and the Compute Resource ID, it will try to import it. This would work but it's not the best UX. 1. Proposed title of this feature request RFE - API associate a single host to a computer resource 2. What is the nature and description of the request? Customer want's an api to associate a single host something similar to below. --- curl -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X PUT -u admin:password -k https://<satellite.fqdn>/api/hosts/:id/associate --- There is an api to disassociate a single host. --- curl -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X PUT -u admin:password -k https://<satellite.fqdn>/api/hosts/:id/disassociate --- There is also an api that could be used to associate all the registered hosts. But this also associates all the host that were previously disassociated. This is not suitable because we have to again manually disassocate the hosts. --- curl -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X PUT -u admin:password -k https://<satellite.fqdn>/api/compute_resources/<compute_resource_id>/associate Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. |