Originally posted by: adejoux
Hello,
I think the programmer's guide could have some real examples. Like your ArchiveLongTermPerformanceMonitorKJson.py.
I missed it and needed to experiment by myself to find how to use the API. It's a lot easier to understand with real code.
Also maybe it's a misunderstanding from my side on how to use the information but i had some problems with the media type to use to submit jobs. Based on the programmer's guide page 42, i set the Content-type header to "application/vnd.ibm.powervm.uom+xml; type=JobRequest" but it was not working. i needed to use "application/vnd.ibm.powervm.web+xml; type=JobRequest".
Another thing, it would be good to have some examples of POST requests. For example with shared storage pool, it seems possible to create LU directly with a POST request(page 41) or by job request(page 70). You gave a example for the jobrequest but not for the other. Maybe it's not recommended ?
It's really good to have a well documented api :) Thank you :)
#Power-Hardware-Management-Console-Programmers#HMCandCMC