1.5

Table Of Contents
<ExternalIpAddress>64.100.10.1</ExternalIpAddress>
<VAppScopedVmId>20ea086f-1a6a-4fb2-8e2e-23372facf7de
</VAppScopedVmId>
<VmNicId>0</VmNicId>
</OneToOneVmRule>
</NatRule>
</NatService>
</Features>
</Configuration>
</NetworkConfig>
</NetworkConfigSection>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... operation="Updating Virtual Application Linux FTP server (7)" ...>
...
</Task>
IMPORTANT Whenever you modify a vApp network, as we do in this example, you must be sure that the
modifications are consistent with the network connection requirements of the virtual machines in the vApp.
The vApp in this example contains a single virtual machine. Its NetworkConnection element, shown in
“Example: Configuration Links in a Vm Element,” on page 90, specifies an IP address that will not be available
after the vApp network is reconfigured as shown here. “Example: Update a NetworkConnectionSection,” on
page 99 corrects this problem. This example uses the IpScope element to restrict the IP addresses available
on a vApp network. It is usually more practical to use a wide range of addresses available on a vApp network
and apply any firewall-related IP address restrictions by modifying the NetworkConnectionSection of the Vm
to which the FirewallRules apply, as shown in “Example: Update a NetworkConnectionSection,” on
page 99. A wider range of IP addresses allows you to modify this vApp to include additional virtual machines,
and the IP address restriction applied in “Example: Update a NetworkConnectionSection,” on page 99 allows
the FirewallRules in this example to remain valid.
Update the NetworkConnectionSection of a Virtual Machine
Whenever you create a vApp network or update its configuration, you might also need to update the
NetworkConnectionSection elements of the virtual machines in the vApp.
Prerequisites
Verify that you are logged in as a system administrator or the object owner.
Procedure
1 Retrieve the virtual machine's NetworkConnectionSection.
2 Modify the returned NetworkConnectionSection as needed.
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 NetworkConnectionSection in the virtual machine.
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.
vCloud API Programming Guide
98 VMware, Inc.