Originally posted by: Bart_G
Dear HMC REST API developers,
Can you share information/documentation giving an example how to create a new LPAR via REST API ? I'm looking an equivalent of HMC CLI command "mksyscfg -r lpar....:
According to the documentation I should use PUT request with application/vnd.ibm.powervm.uom+xml; Type=LogicalPartition media type but there must be multiple parameters defined to create an lpar. Can you list them? Is it possible to create an XML with parameters and use it for the PUT request
Deleting an LPAR is easy I do:
-i -H "Content-Type: application/vnd.ibm.powervm.web+xml; type=LogicalPartitionProfile" -X DELETE -H "Accept: application/atom+xml; charset=UTF-8" -H "X-Audit-Memento: events" https://HMCURL:12443/rest/api/uom/LogicalPartition/LPARUUID
I wonder if this is possible to submit as a job to see the positive/negative result.