An organization VDC network with a routed connection provides controlled access to machines and networks outside of the organization VDC. System administrators and organization administrators can configure network address translation (NAT) and firewall settings on the network's Edge Gateway to make specific virtual machines in the VDC accessible from an external network. Virtual Infrastructure Administrators and Network Administrators can configure network address translation (NAT) and firewall settings on the VDC's Edge Gateway to make specific virtual machines in the VDC accessible from an external network.
Prerequisites
-
This operation requires the rights included in the predefined Organization Administrator role or an equivalent set of rights. Verify that you are logged in to the vCloud Air Compute Service as an Account Administrator.
Procedure
Results
The server takes the requested action and returns an XML representation of the partially-created object. This representation includes an href
attribute, properties specified in the creation request, and an embedded Task element that tracks the creation of the object. When the task completes, the object has been created, and you can use the value of the href
attribute with a GET request to retrieve the XML representation of the object.
See the response portion of Create an Organization VDC Network With a Routed Connection.
Example: Create an Organization VDC Network With a Routed Connection
This example adds a routed network to the organization VDC created in Add a VDC to an Organization. The network connects through the Edge Gateway created in Create an Edge Gateway. This example adds a routed network to an organization VDC that contains an Edge Gateway. Because the creation request sets the value of the IsShared element to true
, the new network is made available in all VDCs in this organization.
POST https://vcloud.example.com/api/admin/vdc/44/networks Content-Type: application/vnd.vmware.vcloud.orgVdcNetwork+xml ... <?xml version="1.0" encoding="UTF-8"?> <OrgVdcNetwork name="RoutedOVDCNet" xmlns="http://www.vmware.com/vcloud/v1.5"> <Description>Routed through an Edge Gateway</Description> <Configuration> <IpScopes> <IpScope> <IsInherited>false</IsInherited> <Gateway>192.168.0.1</Gateway> <Netmask>255.255.255.0</Netmask> <Dns1>10.147.115.1</Dns1> <DnsSuffix>example.com</DnsSuffix> <IpRanges> <IpRange> <StartAddress>192.168.0.100</StartAddress> <EndAddress>192.168.0.199</EndAddress> </IpRange> </IpRanges> </IpScope> </IpScopes> <FenceMode>natRouted</FenceMode> </Configuration> <EdgeGateway href="https://vcloud.example.com/api/admin/gateway/2000" /> <IsShared>true</IsShared> </OrgVdcNetwork>
201 Created Content-Type: application/vnd.vmware.vcloud.orgVdcNetwork+xml ... <OrgVdcNetwork xmlns="http://www.vmware.com/vcloud/v1.5" name="RoutedOVDCNet" type="application/vnd.vmware.vcloud.orgVdcNetwork+xml" href="https://vcloud.example.com/api/admin/network/59" ...> <Link rel="edit" type="application/vnd.vmware.vcloud.orgVdcNetwork+xml" href="https://vcloud.example.com/api/admin/network/59" /> <Link rel="remove" href="https://vcloud.example.com/api/admin/network/59" /> <Link rel="up" type="application/vnd.vmware.admin.vdc+xml" href="https://vcloud.example.com/api/admin/vdc/44" /> <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://vcloud.example.com/api/admin/network/59/metadata" /> <Link rel="down" type="application/vnd.vmware.vcloud.allocatedNetworkAddress+xml" href="https://vcloud.example.com/api/admin/network/59/allocatedAddresses/" /> <Description>Routed through an Edge Gateway</Description> <Tasks> <Task status="running" ... operation="Creating Network RoutedOVDCNet(59)" ... href="https://vcloud.example.com/api/task/999"> </Task> </Tasks> <Configuration> ... <RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments> </Configuration> <EdgeGateway type="application/vnd.vmware.admin.edgeGateway+xml" name="theEdge" href="https://vcloud.example.com/api/admin/edgeGateway/2000" /> <IsShared>true</IsShared> </OrgVdcNetwork>
When the Task completes, the new network is represented in the EdgeGateway by a GatewayInterface whose InterfaceType is Internal
. Unlike the Uplink
interface that you create when you create an EdgeGateway, an internal interface cannot be created explicitly. It is created only as a side-effect of creating a routed organization VDC network.