Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

Create vm from template with custom name within vApp

$
0
0

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>


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>