Description of problem: Can we have POST operation to manage datastore? for example to delete datastore via API API endpoint: /api/data_stores/<ID> Version-Release number of selected component (if applicable): 5.8.1.5 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
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.
https://github.com/ManageIQ/manageiq-api/pull/335
New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/4e59f2aa3b183be7fbc7c01781aea6926bd56d00 commit 4e59f2aa3b183be7fbc7c01781aea6926bd56d00 Author: Alberto Bellotti <abellott> AuthorDate: Fri Mar 2 07:55:07 2018 -0500 Commit: Alberto Bellotti <abellott> CommitDate: Fri Mar 2 07:55:07 2018 -0500 Added support for deleting data_stores DELETE /api/data_stores/:id POST /api/data_stores/:id - action "delete" POST /api/data_stores - bulk action "delete" https://bugzilla.redhat.com/show_bug.cgi?id=1511376 app/controllers/api/data_stores_controller.rb | 16 +++++ config/api.yml | 6 +- spec/requests/data_stores_spec.rb | 94 +++++++++++++++++++++++++++ 3 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 spec/requests/data_stores_spec.rb
Verified on 5.10.0.3 that it's possible to delete datastores using REST API: POST /api/data_stores { "action": "delete", "resources": [ { "href": "<addr>/api/data_stores/:id" } ] } and POST /api/data_stores/:id { "action": "delete" }
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. https://access.redhat.com/errata/RHSA-2019:0212