EasyManuals Logo

VMware VCLOUD API 1.0 - API User Manual

VMware VCLOUD API 1.0 - API
212 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #79 background imageLoading...
Page #79 background image
VMware, Inc. 79
Chapter 5 Datacenter Operations
Retrieve or Modify the Guest Customization Section of a Virtual Machine
Example 517retrievestheGuestCustomizationSectionofaWindowsVm. Example 518modifiesthe
sectionandusestheURLintheeditlinkfromthatsectiontoapplythechangestotheVm.
Example 5-17. Retrieve the Guest Customization Section of a Virtual Machine
Request:
GET http://vcloud.example.com/api/v1.0/vApp/vm-12/guestCustomizationSection
Response:
200 OK
Content-type: application/vnd.vmware.vcloud.guestcustomizationsection+xml
...
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml"
href="http://vcloud.example.com/api/v1.0/vApp/vm-12/guestCustomizationSection/"
ovf:required="false">
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
<Enabled>false</Enabled>
<ChangeSid>false</ChangeSid>
<VirtualMachineId>4</VirtualMachineId>
<JoinDomainEnabled>false</JoinDomainEnabled>
<UseOrgSettings>false</UseOrgSettings>
<AdminPasswordEnabled>false</AdminPasswordEnabled>
<AdminPasswordAuto>true</AdminPasswordAuto>
<ResetPasswordRequired>false</ResetPasswordRequired>
<CustomizationScript/>
<ComputerName>ubuntu10-x86</ComputerName>
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml"
href="http://vcloud.example.com/api/v1.0/vApp/vm-12/
guestCustomizationSection/"/>
</GuestCustomizationSection>
ThemodifiedGuestCustomizationSectionintherequestbodychangesthevalueofthe
JoinDomainEnabledelementtotrue.Thischangerequiresyoutospecifyadomaintojoin,alongwiththe
nameandpasswordofadomainadministrator,sotherequestbodyincludesDomainName,DomainUserName,
andDomainUserPasswordelements.
Example 5-18. Modify the Guest Customization Section of a Virtual Machine
Request:
PUT http://vcloud.example.com/api/v1.0/vApp/vm-12/guestCustomizationSection
Content-type: application/vnd.vmware.vcloud.guestcustomizationsection+xml
...
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml"
href="http://vcloud.example.com/api/v1.0/vApp/vm-12/guestCustomizationSection/"
ovf:required="false">
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
<Enabled>false</Enabled>
<ChangeSid>false</ChangeSid>
<VirtualMachineId>4</VirtualMachineId>
<JoinDomainEnabled>true</JoinDomainEnabled>
<UseOrgSettings>false</UseOrgSettings>
<DomainName>EXAMPLE</DomainName>
<DomainUserName>admin</DomainUserName>
<DomainUserPassword>Pa55w0rd</DomainUserPassword>
<AdminPasswordEnabled>false</AdminPasswordEnabled>
<AdminPasswordAuto>true</AdminPasswordAuto>
<ResetPasswordRequired>false</ResetPasswordRequired>
<CustomizationScript/>
<ComputerName>ubuntu10-x86</ComputerName>

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the VMware VCLOUD API 1.0 - API and is the answer not in the manual?

VMware VCLOUD API 1.0 - API Specifications

General IconGeneral
BrandVMware
ModelVCLOUD API 1.0 - API
CategorySoftware
LanguageEnglish

Related product manuals