No option to update openscap capsule through API
Environment
- Satellite 6.3
Issue
- Please add the option to update openscap capsule through API. PUT does not have this option today on satellite v6.3
PUT /api/hosts/:id
Resolution
- The option
openscap_proxy_idis not available in apidoc, but does work. - This is an example curl command to update the openscap_proxy
# curl -k -u admin:<password> -X PUT -d '{ "host": { "openscap_proxy_id": <capsule-id> } }' -H 'Accept: application/json' -H 'Content-Type: application/json' https://satellite.example.com/api/v2/hosts/<host-id> | json_reformat
- Replace
<capsule-id>,<host-id>with the actual id of the resources. - You can find capsule list using
# hammer capsule list
For more KB articles/solutions related to Red Hat Satellite 6.x OpenSCAP Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x OpenSCAP Issues
For more KB articles/solutions related to Red Hat Satellite 6.x API Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x API Issues
SBR
Product(s)
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.