| Summary: | [RFE] Template API should have provider field | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Leo Khomenko <lkhomenk> |
| Component: | API | Assignee: | Šimon Lukašík <slukasik> |
| Status: | CLOSED NOTABUG | QA Contact: | Dave Johnson <dajohnso> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.6.0 | CC: | jhardy, obarenbo, slukasik |
| Target Milestone: | GA | Keywords: | FutureFeature |
| Target Release: | 5.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | rest:template | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-19 06:57:49 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: | |
|
Description
Leo Khomenko
2016-09-16 14:02:08 UTC
The provider of the template can be queried by appending
&attributes=ext_management_system
to the URL. For example, my testing URL was
http://localhost:3000/api/templates?filter[]=name="miq-nightly-201609012000"&expand=resources&attributes=ext_management_system
That way you get full visibility into what is the template's provider.
I am closing this as not-a-bug. While we could add extra special field for users to query the provider name, we try not to. Every user has slightly different usecase and we soon the defaults would blow-up any limit. We try to provide sane default and offer great customization by querying interface as described in chapter
1.4. Query Specification
in
https://access.redhat.com/documentation/en/red-hat-cloudforms/4.1/red-hat-cloudforms-rest-api/red-hat-cloudforms-rest-api
Lastly, this got my attention
> [RESTAPI] GET https://10.8.199.11/api/templates {'filter[]': ["name='cirros'"]}
> will give only 1 result,
If you have two templates of the same name, you should have received two results from the API. I did, when I recreated described situation.
|