Bug 1507812

Summary: [RFE] Expose the Pause/Resume Provider via API
Product: Red Hat CloudForms Management Engine Reporter: Pavel Zagalsky <pzagalsk>
Component: APIAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED ERRATA QA Contact: juwatts
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9.0CC: epacific, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.10.0Flags: dajohnso: needinfo? (pzagalsk)
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 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: Container Management Target Upstream Version:

Description Pavel Zagalsky 2017-10-31 08:38:09 UTC
Description of problem:
Following the implementation of this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1464924
There should be an option to Pause/Resume providers via the API as well with same functionality

Comment 2 Dave Johnson 2017-10-31 08:44:20 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 CFME Bot 2018-03-01 18:36:11 UTC
New commit detected on ManageIQ/manageiq-api/master:

commit 5976b3959038985e7f7ad19fb51228cd62a398bb
Author:     Jillian Tullo <jtullo@redhat.com>
AuthorDate: Thu Mar 1 10:16:04 2018 -0500
Commit:     Jillian Tullo <jtullo@redhat.com>
CommitDate: Thu Mar 1 10:16:04 2018 -0500

    Add resume action to Providers
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1507812

 app/controllers/api/providers_controller.rb |  8 +++++
 config/api.yml                              |  4 +++
 spec/requests/providers_spec.rb             | 52 +++++++++++++++++++++++++++--
 3 files changed, 62 insertions(+), 2 deletions(-)

Comment 7 juwatts 2018-09-18 18:29:22 UTC
CFME Build:

Successfully enabled and resumed a single provider via the API

Successfully enabled and resumed multiple providers at the same time via the API. 

Verified the  `enabled` attribute on the provider instance (ext_management_systems table) was set correctly on a pause and a resume.

Comment 8 errata-xmlrpc 2019-02-07 23:00:36 UTC
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.