I am trying to write a simple Perl script that uses the Hyperic RESTFul api.
___________________________________________
Example -
hitting this URL -
https://<server-hostname>:<port>/hqu/hqapi1/group/get.hqu?name=<group-name>
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>
___________________________________________
Now, if you look at the URL, it has elements from the HQApi 'group' command list as shown on this page - http://support.hyperic.com/display/DOC/HQApi+3.2+group+command
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'
The only available documentation for RESTFul api is a Perl script on this page - http://support.hyperic.com/display/DOC/HQApi+maintenance+command
So, Help!!
Message was edited by: ajt2010
Message was edited by: ajt2010
___________________________________________
Example -
hitting this URL -
https://<server-hostname>:<port>/hqu/hqapi1/group/get.hqu?name=<group-name>
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>
___________________________________________
Now, if you look at the URL, it has elements from the HQApi 'group' command list as shown on this page - http://support.hyperic.com/display/DOC/HQApi+3.2+group+command
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'
The only available documentation for RESTFul api is a Perl script on this page - http://support.hyperic.com/display/DOC/HQApi+maintenance+command
So, Help!!
Message was edited by: ajt2010
Message was edited by: ajt2010