Description of problem: Cloudforms documentation, chapter 3.8.8 has a JSON example for deleting multiple vms. However, the JSON example is not valid JSON. Version-Release number of selected component (if applicable): 3.2 How reproducible: Validate the JSON example. Steps to Reproduce: 1. open https://access.redhat.com/documentation/en-US/Red_Hat_CloudForms/3.2/html-single/Red_Hat_CloudForms_REST_API/index.html 2. look at json example for deleting multiple machines 3. observe the missing curly brackets around the objects in the array Actual results: Invalid JSON Expected results: Valid JSON Additional info: The example should look like this: { "action" : "delete", "resources" : [ {"href" : "https://hostname/api/vms/348"}, {"href" : "https://hostname/api/vms/349"}, {"href" : "https://hostname/api/vms/3"} ] }
Hi Roland, Thank you for raising this bug. Moving to the Red Hat CloudForms documentation queue so that this bug can be addressed as part of work on that documentation suite. Kind regards, Andrew
Assigning to Dayle for review.
I've fixed the "Deleting multiple virtual machines" JSON example in the following branches/versions, directly in Gitlab: * 4.1 (master) * 4.0 * 3.2 These will show up in the next build of these guides.
The 4.0 version with fixes has been published to Customer Portal: https://access.redhat.com/documentation/en/red-hat-cloudforms/version-4.0/red-hat-cloudforms-rest-api/ 3.2 version republish is pending.
This is now live in the 3.2 version of the REST API Guide: https://access.redhat.com/documentation/en/red-hat-cloudforms/version-4.0/red-hat-cloudforms-rest-api/#delete-vms