Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Re: Can't modify vApp Template CustomizationSection

$
0
0

I found here in a post that vAppTemplates are read-only.  That probably explains the error i was getting.

According to this post i should be able to enable CustomizeOnInstantiate from CaptureVAppParams, but I am getting an error for that: Add vApp to Catalog - Customize VM settings

 

POST https://.../api/vdc/62407f31-3923-471e-8ab9-ff9d6dfccbd5/action/captureVApp

 

<CaptureVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" name="HSQA_test">

  <Description> HSQA template </Description>

  <Source href="https://.../api/vApp/vapp-08a4351f-af84-4730-a665-54ed7d75afe2" type="application/vnd.vmware.vcloud.vApp+xml"/>

  <CustomizationSection>

    <CustomizeOnInstantiate>true</CustomizeOnInstantiate>

  </CustomizationSection>

</CaptureVAppParams>

 

Error:

<?xml version="1.0" encoding="UTF-8"?>

<Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="BAD_REQUEST" message="Bad request

- Unexpected JAXB Exception

- cvc-complex-type.2.4.a: Invalid content was found starting with element 'CustomizeOnInstantiate'. One of '{&quot;http://schemas.dmtf.org/ovf/envelope/1":Info}' is expected." majorErrorCode="400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://147.34.135.65/api/v1.5/schema/master.xsd">

</Error>

 

I can run POST /vdc/{id}/action/captureVApp  just fine, but i get an error as soon as i add the CustomizationSection.

The truth is i don't see CustomizationSection in the documentation, but i just saw this in the post mentioned above.

Am i doing something wrong here?

 

Basically I just need to do the correspondent of When using this template Customize VM settings from Add to Catalog dialog.

 

Thank you!!!


Viewing all articles
Browse latest Browse all 230663

Trending Articles



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