Bug 1333112
Summary: | API does not return Fact values with Viewer role | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Mike McCune <mmccune> |
Component: | API | Assignee: | Daniel Lobato Garcia <dlobatog> |
Status: | CLOSED ERRATA | QA Contact: | Sanket Jagtap <sjagtap> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.1.2 | CC: | bbuckingham, chrobert, cwelton, dlobatog, ealcaniz, hklein, jcallaha, kbidarka, ktordeur, mmccune, peter.vreman, sthirugn, xdmoon |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/9793 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1268829 | Environment: | |
Last Closed: | 2016-05-17 05:33:28 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: | 1268829 | ||
Bug Blocks: | 1122832 |
Comment 1
Bryan Kearney
2016-05-04 18:19:06 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9793 has been closed curl -ksH "Content-Type:application/json" -H "Accept:application/json" -H "Accept:version=2" -u admin1:aa https://xyz.redhat.com/api/hosts/4/facts | json_reformat { "total": 0, "subtotal": 1, "page": 1, "per_page": 20, "search": " host = 4", "sort": { "by": null, "order": null }, "results": { "xyz.redhat.com": { "uptime_hours": "0", "uptime_days": "0", "uptime": "0:00 hours", "macaddress": "00:12:4a:4e:a6:21", "macaddress_eth0": "00:1a:4a:3e:a6:21", "bios_release_date": "01/01/2007", "bios_version": "0.5.1", "uniqueid": "09775", "blockdevice_vda_vendor": "0x1af4", "physicalprocessorcount": "1", "processorcount": "1", "blockdevice_sr0_size": "1073741312", "network_eth0": "x.x.112.0", "ipaddress": "x.x.112.24", "ipaddress_eth0": "x.x.112.24", "network_lo": "127.0.0.0", "ipaddress_lo": "127.0.0.1", "augeasversion": "1.4.0", "facterversion": "1.7.6", "rubyversion": "2.0.0" } } } hammer -u admin -p changeme user info --id 4 Id: 4 Login: admin1 Name: admin1 admin1 Email: admin1 Admin: no Authorized by: Internal Last login: 2016/05/16 10:24:05 Default organization: Default location: Roles: Anonymous Viewer User groups: Locations: Default Location Organizations: Default Organization Created at: 2016/05/16 10:01:23 Updated at: 2016/05/16 10:24:05 Also works for manager role. 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/RHBA-2016:1084 |