5.5

Table Of Contents
Procedure
1 Choose the external network to which this organization VDC network will connect.
This external network must be one of the ones listed in the AvailableNetworks element of the Provider
VDC that backs the organization VDC in which you are creating the new network. Follow these steps to
find a suitable external network.
a Retrieve the XML representation of the organization VDC in which you are creating the new
network.
Use a request like this one:
GET https://vcloud.example.com/api/admin/vdc/44
The ProviderVdcReference element in the response contains a reference to the Provider VDC that
backs this organization VDC.
<AdminVdc ...>
...
<ProviderVdcReference
type="application/vnd.vmware.admin.providervdc+xml"
name="PVDC-Example"
href="https://vcloud.example.com/api/admin/extension/providervdc/35"
...
</AdminVdc>
b Retrieve the the XML representation of the Provider VDC.
Use a request like this one:
GET https://vcloud.example.com/api/admin/extension/providervdc/35
The AvailableNetworks element in the response lists the external networks that are available to that
Provider VDC, and to all the organization VDCs that it supports.
<vcloud:AvailableNetworks>
<vcloud:Network
type="application/vnd.vmware.admin.network+xml"
name="VC1-VLAN48"
href="https://vcloud.example.com/api/admin/network/297" />
<vcloud:Network ... />
<vcloud:Network ... />
</vcloud:AvailableNetworks>
2 Create an OrgVdcNetwork element.
a Specify the href of the external network you chose in Step 1 in the ParentNetwork element.
The type and name attributes are optional here.
b Set the FenceMode to bridged.
This creates a direct connection to the parent network.
See the request portion of “Example: Create an Organization VDC Network With a Direct Connection,”
on page 190.
3 POST the OrgVdcNetwork element you created in Step 2 to the URL for adding networks to the
organization VDC.
See the request portion of “Example: Create an Organization VDC Network With a Direct Connection,”
on page 190.
Chapter 6 Creating and Managing Organizations
VMware, Inc. 189