Bug 1643938 - Expose ConversionHost through API
Summary: Expose ConversionHost through API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.10.0
Assignee: Daniel Berger
QA Contact: Yadnyawalk Tale
URL:
Whiteboard: v2v
Depends On:
Blocks: 1622728 1643558 1650699 1651543
TreeView+ depends on / blocked
 
Reported: 2018-10-29 13:39 UTC by Fabien Dupont
Modified: 2019-02-12 16:49 UTC (History)
7 users (show)

Fixed In Version: 5.10.0.28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-12 16:49:42 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fabien Dupont 2018-10-29 13:39:28 UTC
The ConversionHost model has been implemented in manageiq, but no API endpoint exist to manipulate it. At least, it would be useful to CRUD the object and associate it to Host or Vm.

Comment 2 Dave Johnson 2018-10-29 13:45:29 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 5 Daniel Berger 2018-12-04 03:31:14 UTC
Yes, we have basic CRUD now at least, plus tagging.

https://github.com/ManageIQ/manageiq-api/pull/513

I haven't added a resource subcollection to associate hosts or vms yet, so I'll leave this open for now.

Comment 6 Daniel Berger 2018-12-11 20:33:47 UTC
I decided against adding subcollections, since there's only one resource per conversion host. Instead, if you want access to the resource, you can point at /api/conversion_hosts/:id?attributes=resource&expand=resources.

Moving to POST.

Comment 10 Yadnyawalk Tale 2018-12-28 08:35:22 UTC
Tested it and conversion hosts APIs works well. I had few questions and I have asked that here on requirement doc.
https://docs.google.com/a/redhat.com/document/d/1L8oc5Uj-WM0RfRy7XaW5meGUZxHebsdQx09ZEF2zekA/edit?disco=AAAACd9crKU
https://docs.google.com/a/redhat.com/document/d/1L8oc5Uj-WM0RfRy7XaW5meGUZxHebsdQx09ZEF2zekA/edit?disco=AAAACd9crKY

Tested GET, PATCH, DELETE. All works well.
Verified on - 5.10.0.30.


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