Originally posted by: Dominic_Schweizer
Hi There,
I have automated everything with powervc to create an LPAR. Now the last thing to do is rename the lpar (without these UUIDs) and rename the profile. But my first priority is to rename the lparname.
My Rest Call is as follow to rename the Lpar:
curl -k -c cookies.txt -b cookies.txt -i -H "Content-Type: application/vnd.ibm.powervm.uom+xml; Type=LogicalPartition" -H "Accept: application/atom+xml; charset=UTF-8" -X POST -H "Expect:" -d @partitionname.xml https://hmc301.eng.zkb.ch:12443/rest/api/uom/LogicalPartition/2FBD8BF1-C3D1-41BA-8A38-B44D4F9D1BBE
--> the ID at the end is the lpar UUID...
---
my xml body is the following:
<LogicalPartition:LogicalPartition xmlns:LogicalPartition="http://www.ibm.com/xmlns/systems/power/firmware/uom/mc/2012_10/" xmlns="http://www.ibm.com/xmlns/systems/power/firmware/uom/mc/2012_10/" xmlns:ns2="http://www.w3.org/XML/1998/namespace/k2":PartitionProfiles schemaVersion="V1_7_0">
<Metadata>
<Atom/>
</Metadata>
<PartitionName kxe="false" kb="CUR">aix9020.eng</PartitionName>
</LogicalPartition:LogicalPartition>
----
I have always Problems with the first xml element <LogicalPartition:LogicalPartition>. There seems to be always an error....with xml parsing, i think my xml body is not good enough....
1. error i had was:
The content of element 'LogicalPartition:LogicalPartition' is not complete
2. error i had after a little modification:
LogicalPartition" must be followed by either attribute specifications, ">" or "/>"
........
Can you provide me a rest call and a xml body to rename the lparname, or do you see what i did wrong?
Hope u can help me!
Thanks in advance
Cheers
Dominic