5.1

Table Of Contents
type="application/vnd.vmware.admin.vmwprovidervdc+xml"
name="PvDC-VC005"
href="https://vcloud.example.com/api/admin/extension/providervdc/45" />
</vmext:ProviderVdcMergeParams>
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task ... >
...
</Task>
Create an External Network
An external network is a reference to a portgroup on a vCenter server attached to vCloud Director. To create
an external network, a system administrator must specify the vCenter server and a portgroup associated with
it. External networks provide support for bridged organization networks.
Only a system administrator can create an external network. A system administrator can modify an external
network to change properties such as its description, but cannot change the portgroup that backs the network.
An organization administrator can retrieve a read-only representation of an external network to examine its
properties.
Prerequisites
n
Verify that you are logged in to the vCloud API as a system administrator.
n
Retrieve the list of available portgroups. See “Retrieve a List of Available Portgroups and Switches from
a vCenter Server,” on page 203.
Procedure
1 Retrieve the XML representation of the vSphere platform extensions.
Use a request like this one.
GET https://vcloud.example.com/api/admin/extension
2 Examine the response to locate the Link element that contains the URL for adding external networks to
the cloud.
This element has a rel attribute value of add and a type attribute value of
application/vnd.vmware.admin.vmwexternalnet+xml, as shown here:
<Link
type="application/vnd.vmware.admin.vmwexternalnet+xml"
rel="add"
href="https://vcloud.example.com/api/admin/extension/externalnets"/>
3 Choose a vCenter server to provide a portgroup for the network.
4 Create a VMWExternalNetwork element that specifies the properties of the external network.
These properties include the portgroup you specified in Step 3.
5 POST the VMWExternalNetwork element you created in Step 4 to the URL described in Step 2.
See the request portion of “Example: Create an External Network,” on page 220.
Chapter 7 Managing and Monitoring a Cloud
VMware, Inc. 219