Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Invalid content was found starting with element 'CustomizationScript'

$
0
0

vCloud version 5.1

 

The only chars I put in CustomizationScript is "touch". How can the string "touch" invalid in the xml?

 

Request Method: PUT

Request Payload:

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

<GuestCustomizationSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ovf:required="false">

<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>

<Enabled>true</Enabled>

<ChangeSid>false</ChangeSid>

<VirtualMachineId>c2164bcd-45e4-40f4-a370-8a34159427c1</VirtualMachineId>

<JoinDomainEnabled>false</JoinDomainEnabled>

<UseOrgSettings>false</UseOrgSettings>

<AdminPasswordEnabled>true</AdminPasswordEnabled>

<AdminPasswordAuto>true</AdminPasswordAuto>

<ResetPasswordRequired>false</ResetPasswordRequired>

<ComputerName>RHEL</ComputerName>

<CustomizationScript>touch</CustomizationScript>

</GuestCustomizationSection>

 

Response:

<?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 'CustomizationScript'. One of '{&quot;http://www.vmware.com/vcloud/v1.5":Link, WC[##other:&quot;http://www.vmware.com/vcloud/v1.5"]}' is expected." majorErrorCode="400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://vdc.onxcloud.com/api/v1.5/schema/master.xsd"></Error>

 

 

Document (VMware vCloud Director Documentation Center):

Script to run on guest customization. The entire script must appear in this element. Use the XML entity &#13; to represent a newline. Unicode characters can be represented in the form &#xxxx; where xxxx is the character number.


Viewing all articles
Browse latest Browse all 176483

Trending Articles