Bug 1539379

Summary: [RFE] add API to assign alert profiles to the enterprise
Product: Red Hat CloudForms Management Engine Reporter: Elad Alfassa <ealfassa>
Component: APIAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED ERRATA QA Contact: Parthvi Vala <pvala>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.9.0CC: epacific, gtanzill, obarenbo, oourfali, pvala, simaishi
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container
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:01:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Elad Alfassa 2018-01-28 12:37:48 UTC
We need an API to assign alert profiles to the Enterprise to automate deployments of CFME.

This functionality exists in the UI under "Control->Explorer->Alert Profiles -> select an alert profile -> configuration -> edit assignments for this alert profile", but there's no API for it yet.

Comment 3 CFME Bot 2018-03-20 19:46:27 UTC
New commit detected on ManageIQ/manageiq-api/master:

https://github.com/ManageIQ/manageiq-api/commit/09a440a7ccb516510716baee68d9ee3250f554b0
commit 09a440a7ccb516510716baee68d9ee3250f554b0
Author:     Jillian Tullo <jtullo>
AuthorDate: Thu Mar 15 15:55:33 2018 -0400
Commit:     Jillian Tullo <jtullo>
CommitDate: Thu Mar 15 15:55:33 2018 -0400

    Unassign alert definition profiles

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539379

 app/controllers/api/alert_definition_profiles_controller.rb | 18 +
 config/api.yml | 4 +
 spec/requests/alert_definition_profiles_spec.rb | 52 +
 3 files changed, 74 insertions(+)

Comment 7 Parthvi Vala 2018-11-13 06:52:03 UTC
FIXED. Verified on 5.10.0.23.20181106165157_92dd189.

Turns out you were right Gregg. I collected all tags via API and selected one at random("roles/change_managers") from the list. I'm still not sure why "roles/change_managers" did not work. I then selected one tag from the list on UI and it worked. Tested the tag "department/accounting" with both name and href, and it worked fine.

Comment 8 errata-xmlrpc 2019-02-07 23:01:05 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.

https://access.redhat.com/errata/RHSA-2019:0212