Greetings,
I have added a ovf:ProductSection to a vApp using the REST API. Can anyone tell me why I get the key/value pair in the ProductSection via the REST api and the key/value pair in the PropertySection via the vmtoolsd utility?
Thanks!
Here's the XML I sent in:
Here's the REST reply once it is in the vApp:
curl --insecure -H "x-vcloud-authorization: KIehYymkgm7Hadgvj55yzUVMNryDGddDM83Wk0rdDGc=" https://10.9.184.240/api/vApp/vapp-467073a3-9848-4803-bcc8-5516210cff1f/productSections 2>/dev/null
<?xml version="1.0" encoding="UTF-8"?>
<ProductSectionList xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" type="application/vnd.vmware.vcloud.productSections+xml" href="https://10.9.184.240/api/vApp/vapp-467073a3-9848-4803-bcc8-5516210cff1f/productSections/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://10.9.184.240/api/v1.5/schema/master.xsd">
<Link rel="edit" type="application/vnd.vmware.vcloud.productSections+xml" href="https://10.9.184.240/api/vApp/vapp-467073a3-9848-4803-bcc8-5516210cff1f/productSections/"/>
<ovf:ProductSection ovf:required="true">
<ovf:Info>Information about the installed software</ovf:Info>
<ovf:Property ovf:value="Global-RHEL5-LAMP-12.0" ovf:userConfigurable="false" ovf:type="string" ovf:password="false" ovf:key="S_TEMPLATE">
<ovf:Label>Template Name</ovf:Label>
</ovf:Property>
</ovf:ProductSection>
</ProductSectionList>
Here's the vmtoolsd outout:
[root@cloudlg184111 ~]# /usr/sbin/vmtoolsd --cmd 'info-get guestinfo.ovfEnv'
<?xml version="1.0" encoding="UTF-8"?>
<Environment
xmlns="http://schemas.dmtf.org/ovf/environment/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
xmlns:ve="http://www.vmware.com/schema/ovfenv"
oe:id=""
ve:vCenterId="vm-5218">
<PlatformSection>
<Kind>VMware ESXi</Kind>
<Version>5.0.0</Version>
<Vendor>VMware, Inc.</Vendor>
<Locale>en</Locale>
</PlatformSection>
<PropertySection>
<Property oe:key="S_TEMPLATE" oe:value="Global-RHEL5-LAMP-12.0"/>
<Property oe:key="vCloud_UseSysPrep" oe:value="None"/>
<Property oe:key="vCloud_adminPassword" oe:value=""/>
<Property oe:key="vCloud_bitMask" oe:value="1"/>
<Property oe:key="vCloud_bootproto_0" oe:value="static"/>
<Property oe:key="vCloud_computerName" oe:value="Global-RHEL-001"/>
<Property oe:key="vCloud_dns1_0" oe:value="10.9.0.25"/>
<Property oe:key="vCloud_dns2_0" oe:value="10.10.0.25"/>
<Property oe:key="vCloud_gateway_0" oe:value="192.168.184.1"/>
<Property oe:key="vCloud_ip_0" oe:value="192.168.184.111"/>
<Property oe:key="vCloud_macaddr_0" oe:value="00:50:56:05:01:27"/>
<Property oe:key="vCloud_markerid" oe:value="4f0b3f43-e443-4145-9ff8-84ba679f4bb1"/>
<Property oe:key="vCloud_netmask_0" oe:value="255.255.255.0"/>
<Property oe:key="vCloud_numnics" oe:value="1"/>
<Property oe:key="vCloud_primaryNic" oe:value="0"/>
<Property oe:key="vCloud_reconfigToken" oe:value="586595616"/>
<Property oe:key="vCloud_resetPassword" oe:value=""/>
<Property oe:key="vCloud_suffix_0" oe:value="okla.----.com"/>
</PropertySection>
<ve:EthernetAdapterSection>
<ve:Adapter ve:mac="00:50:56:05:01:27" ve:network="dvs.VCDVSCloudAdminLabNet-53beb9a5-2e34-43b6-8366-b83319480e7e" ve:unitNumber="8"/>
</ve:EthernetAdapterSection>
</Environment>
[root@cloudlg184111 ~]#