Bug 1511376
| Summary: | [RFE] Delete Datastores via ReST API | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Sachin <sacpatil> |
| Component: | API | Assignee: | abellott |
| Status: | CLOSED ERRATA | QA Contact: | Martin Kourim <mkourim> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.8.0 | CC: | abellott, jhardy, jocarter, mkourim, obarenbo, sacpatil, simaishi |
| Target Milestone: | MVP | Keywords: | FutureFeature, RFE |
| Target Release: | 5.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-07 23:00:36 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1555371, 1597405 | ||
|
Description
Sachin
2017-11-09 09:24:58 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. 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 |