1 Reply Latest reply on Apr 24, 2017 4:23 AM by workingfloow

    Create vm from template with custom name within vApp

    workingfloow Lurker

      I tried to create vm from template with custom name in vApp using RecomposeVAppParams command and used SourcedItem and CreateItem but I can't.
      Every time I get "Bad request ... " error.

       

      What is the correct way to do it?


      <RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:ns12="http://www.vmware.com/vcloud/v1.5"
      xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <Description>Recomposed vApp description.</Description>

      <SourcedItem sourceDelete="false">

           <Source href="{src}" />

           <InstantiationParams>

                <VirtualHardwareSection>

                     <Name>{name}</Name>

                </VirtualHardwareSection>

           </InstantiationParams>

      </SourcedItem>