5.1

Table Of Contents
Table 5-4. vCloud API Custom Attributes for OVF and RASD Elements (Continued)
Element Name
RASD
Resource
Type Attribute Name Attribute Type Description
rasd:HostResource 17 (Hard
disks)
busSubType xs:string read-only
ovf:OperatingSystemSec
tion
N/A osType xs:string Internal VMware identifier for the
guest operating system. See
https://www.vmware.com/suppor
t/developer/vc-
sdk/visdk41pubs/ApiReference/vim
.vm.GuestOsDescriptor.GuestOsIde
ntifier.html
For more information about OVF and RASD (CIM_ResourceAllocationSettingData) elements, see the OVF
specification, available at http://www.dmtf.org/standards/published_documents/DSP0243_1.0.0.pdf.
Update Multiple Sections of a Virtual Machine
You can make a single request that updates the name, Description, and any or all of the
VirtualHardwareSection, OperatingSystemSection, NetworkConnectionSection, GuestCustomizationSection
elements of a virtual machine.
Every Vm element contains a link to a reconfigureVm operation that you can use to update the name,
Description, and multiple sections in a single operation. Sections that you omit from the request body are not
updated.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator or the object owner.
Procedure
1 Retrieve the Vm element that you want to update.
2 Modify the retrieved Vm element.
Modifications can include the name, Description, and any or all of the VirtualHardwareSection,
OperatingSystemSection, NetworkConnectionSection, GuestCustomizationSection elements of the Vm.
Modified sections must contain all required elements, even if you are not changing their values. Because
optional elements revert to default values if they are omitted or empty, it is a best practice to include
optional elements in updates. Link elements and href attributes from responses do not need to be included
in modified sections. Some elements and attributes might be read-only. See the schema reference for
details.
3 Use the modified Vm as the body of a reconfigureVm request.
The modified Vm replaces the contents of the retrieved Vm. For some section types, modifications take effect
immediately. For others, modifications take effect only after a power or deployment state change.
Example: Update Multiple Sections of a Virtual Machine
This example uses the reconfigureVm operation to accomplish the updates shown in “Example: Update a
NetworkConnectionSection,” on page 116 and “Example: Modify the Guest Customization Section of a Virtual
Machine,” on page 119 in a single operation.
vCloud API Programming Guide
106 VMware, Inc.