5.5

Table Of Contents
For more information about the types of networks you can create and the resources on which they depend,
see “About vCloud Director Networks,” on page 169.
Prerequisites
Verify that you are logged in to the vCloud API as an organization administrator or system administrator.
Procedure
1 Retrieve the XML representation of the organization VDC to which you want to add the network.
This request retrieves the admin view of an organization VDC.
GET https://vcloud.example.com/api/admin/vdc/44
2 Examine the response to locate the Link element that contains the URL for adding networks to the VDC.
This element has a rel attribute value of add and a type attribute value of
application/vnd.vmware.admin.orgVdcNetwork+xml, as shown here:
<Link
rel="add"
type="application/vnd.vmware.admin.orgVdcNetwork+xml"
href="https://vcloud.example.com/api/admin/vdc/44/networks" />
3 Create an OrgVdcNetwork element.
4 POST the OrgVdcNetwork element to the URL described in Step 2.
The server takes the requested action and returns a Task element that tracks the progress of the request. The
Owner element of this task includes the href attribute of the new network. When the task completes, you can
use the value of this attribute with a GET request to retrieve the XML representation of the new network.
Create an Organization VDC Network With a Direct Connection
An organization VDC network with a direct connection provides direct layer 2 connectivity to machines and
networks outside of the organization VDC. Machines outside of this organization VDC can connect to
machines within the organization VDC directly.
An organization VDC network with a direct connection is configured as a child network of one of the
external networks provisioned to the cloud by the system administrator.
Prerequisites
n
Verify that you are logged in to the vCloud API as a system administrator.
n
Retrieve the list of external networks. For information about how to retrieve this list, see “External
Networks and Network Pools,” on page 172.
vCloud API Programming Guide
188 VMware, Inc.