Description of problem:
We are missing the ability to set a custom attribute on services via the API. As a cloud administrator i need the ability to provision resources via an Ansible playbook and then leverage custom attributes to assist with a retirement playbook. But there does not seem to be a way to set custom attributes on services. The same exact api action works on VMs and providers but not on services.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This does not work:
# curl -k -u admin:smartvm -X GET https://localhost/api/services/12000000000002/custom_attributes
curl -k -u admin:smartvm -X GET https://localhost/api/vms/12000000000032/custom_attributes
HTTP 404 error
HTTP 200 and a list of custom attributes on the service
New commit detected on ManageIQ/manageiq-api/master:
Author: Bo Yao <firstname.lastname@example.org>
AuthorDate: Wed Sep 27 16:39:27 2017 -0400
Commit: Bo Yao <email@example.com>
CommitDate: Sat Sep 30 10:09:57 2017 -0400
add customer attr mixin for services api
app/controllers/api/services_controller.rb | 1 +
1 file changed, 1 insertion(+)
Verified using our test automation that it's possible to set a custom attribute on services via the API on 126.96.36.199
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.