PowerVM

Power Virtualization

Connect, learn, share, and engage with IBM Power.


#Power
#TechXchangeConferenceLab
 View Only
Expand all | Collapse all

Comments on API reference document

  • 1.  Comments on API reference document

    Posted Fri July 25, 2014 07:30 AM

    Originally posted by: Niraj Shah IBM


    Use this topic to give comments and feedback regarding the API reference document.


    #HMCandCMC
    #Power-Hardware-Management-Console-Programmers


  • 2.  Re: Comments on API reference document

    Posted Fri August 22, 2014 11:37 AM

    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


  • 3.  Re: Comments on API reference document

    Posted Tue August 26, 2014 06:45 AM

    Originally posted by: Niraj Shah IBM


    Hi,

     

    We will be uploading more examples on the community.

    Your finding regarding Content-type is for JobRequest is correct. The Content-type must be "application/vnd.ibm.powervm.web+xml; type=JobRequest". It is a documentation error and we shall correct is in the next version of the document.

     

    Thank you for your comments.

    Kind regards,

    Niraj Shah


    #Power-Hardware-Management-Console-Programmers
    #HMCandCMC