Upstream bug assigned to dlobatog
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