Description of problem:
For UI, we can create a discovery rule associated with any specific Organization or Location. Via API we can't create/update a discovery rule with org/loc - satellite doesn't accept 'organization' or 'location' params, there's also no references to such params in apidocs. It's problematic as discovery rules created via API can't be seen via UI in any specific location/organization (except the case of 'any context').
Version-Release number of selected component (if applicable):
Sat6.2 Beta Snap6
Steps to Reproduce:
1. Try to create a discovery rule via API with 'organization' and 'location' parameters specified
2. Try to update existing discovery rule via API with any 'organization' and 'location'
'organization' and 'location' parameters are not accepted
User should be able to create a discovery rule with organization and location specified as well as update existing discovery rule with new org/loc combination.
Indeed, this is a bug - we are missing the support completely. Scheduling for Discovery 6.0 upstream release.
Upstream bug assigned to szadok
Moving to POST since upstream bug http://projects.theforeman.org/issues/14637 has been closed
VERIFIED in Sat 6.3.0 Snap 4
Now it's possible to either create or update discovery rule with location and organization. There's one issue though - parameters `location-ids` and `organization-ids` are accepted, but not returned via POST/PUT requests. I'll fill a separate bug for that.
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.