gives you a xml response that has a list of all the elements in that 'group-name' - <GroupResponse> <Status>Success</Status> <Group id="99999" resourceId="22222" name="XYZ" description="" location=""> <Resource id="88888" name="ABC"/> <Resource id="77777" name="EFG"/> <Role id="55555" name="AdminX"/> <Role id="11111" name="UserX"/> </Group> </GroupResponse> ___________________________________________
My Question - What is the format of the URL that is used in RESTFul api calls? OR How to formulate RESTFul api-call URL from the commands listed in the 'Web Services API ' documentation here - http://support.hyperic.com/display/DOC/HQApi+maintenance+command
Example - What URL should i used to list all servers of type 'Linux'
From the <wadl:resources base="http://localhost:8080/hqu/hqapi1/">
<wadl:resource path="resource/find.hqu">
<wadl:param name="prototype" style="query" required="false" type="xs:string"> <wadl:doc> Find Resources of the given ResourcePrototype </wadl:doc> </wadl:param> <wadl:param name="children" style="query" required="false" type="xs:boolean" default="false"> <wadl:doc> If set to true, return child Resources of the returned Resource. </wadl:doc> </wadl:param>
This is the equivalent of the command line:
hqapi.sh resource list --prototype=Linux --children
(hqapi.sh resource list --prototype=Linux --children=true)
I actually wouldn't recommend using the wadl files as a reference. They are a bit outdated and may be removed in the future (this is yet to be determined). The XSD files are a better reference.