I'm composing a vApp in .Net using the 1.5 API and am getting an exception when setting the CPU count
vappTemplateItem.InstantiationParams = new InstantiationParamsType
{
Items = new object[]
{
new VirtualHardwareSection_Type { Item=new[] { new RASD_Type {
AllocationUnits=new cimString{Value="hertz * 10^6"},
Description=new cimString{Value="Number of Virtual CPUs"},
ElementName=new cimString{Value="1 virtual CPU(s)"},
InstanceID=new cimString{Value="4"},
ResourceType=new ResourceType1{ Value="3"},
VirtualQuantity=new cimUnsignedLong{Value=2}
}}}
}
};
Bad request - Unexpected JAXB Exception - cvc-complex-type.2.4.a: Invalid content was found starting with element 'Item'. One of '{"http://schemas.dmtf.org/ovf/envelope/1":Info}' is expected.
I'd also like some guidance on how to the same for the memory.
Many thanks,
Peter