1.5

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:Connection 10
(Network
adapters)
primaryNetworkCon
nection
xs:boolean True if this is the primary network
connection of the virtual machine
rasd:HostResource 17 (Hard
disks)
capacity xs:string Hard disk capacity in megabytes. See
“Retrieve or Modify the Hard Disk
Configuration of a Virtual
Machine,” on page 106
rasd:HostResource 17 (Hard
disks)
busType xs:string read-only
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.
Retrieve or Update a Modifiable Section
You can make a GET request to the URL of any modifiable section to retrieve it for modification. After you
modify the section, you can make a PUT request to its edit link to update the section with your modifications.
Prerequisites
Verify that you are logged in as a system administrator or the object owner.
Procedure
1 Retrieve the section to modify.
Make a GET request to the URL in the section's href attribute value.
2 Modify the retrieved section.
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 Update the section with your modifications.
Find the Link element in the section where rel="edit". Make a PUT request to the URL in that link's
href attribute value, and supply the modified section as the request body.
For most section types, the response to this request is a Task element that tracks the update operation.
When the task completes, the section is updated.
The modified section replaces the contents of the original section. For some section types, modifications take
effect immediately. For others, modifications take effect only after a power or deployment state change.
vCloud API Programming Guide
94 VMware, Inc.