An isolated organization vDC network provides an isolated, private network that machines in the organization vDC can connect to. This network provides no connectivity to machines outside this organization vDC. Machines outside of this organization vDC have no connectivity to machines within the organization.

Verify that you are logged in to the vCloud API as an organization administrator or system administrator.

1

Create an OrgNetwork element.

See the request portion of Example: Create an Isolated Organization vDC Network.

2

POST the OrgNetwork element you created in Step 1 to the URL for adding networks to the organization vDC

See the request portion of Example: Create an Isolated Organization vDC Network.

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 Example: Create an Isolated Organization vDC Network.

This example adds an isolated network to the organization vDC created in Add a vDC to an Organization. It includes a ServiceConfig element that configures a DHCP service for the network. This type of DHCP service is identical to the DHCP service supported for a vApp network, and can specify only a single IP address range. No other network services can be created in an isolated organization vDC network.

Request:

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="Isolated"
   xmlns="http://www.vmware.com/vcloud/v1.5">
   <Description>Isolated Organization vDC Network</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>isolated</FenceMode>
   </Configuration>
   <ServiceConfig>
      <DhcpService>
         <IsEnabled>false</IsEnabled>
         <DefaultLeaseTime>3600</DefaultLeaseTime>
         <MaxLeaseTime>7200</MaxLeaseTime>
         <IpRange>
            <StartAddress>192.168.0.2</StartAddress>
            <EndAddress>192.168.0.99</EndAddress>
         </IpRange>
      </DhcpService>
   </ServiceConfig>
</OrgVdcNetwork>

Response:

201 Created
Content-Type: application/vnd.vmware.vcloud.orgVdcNetwork+xml
...
<OrgVdcNetwork
   xmlns="http://www.vmware.com/vcloud/v1.5"
   name="Isolated"
   type="application/vnd.vmware.vcloud.orgVdcNetwork+xml"
   href="https://vcloud.example.com/api/admin/network/60"...>
   <Link
      rel="edit"
      type="application/vnd.vmware.vcloud.orgVdcNetwork+xml"
      href="https://vcloud.example.com/api/admin/network/60" />
   <Link
      rel="remove"
      href="https://vcloud.example.com/api/admin/network/60" />
   <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/60/metadata" />
   <Link
      rel="down"
      type="application/vnd.vmware.vcloud.allocatedNetworkAddress+xml"
      href="https://vcloud.example.com/api/admin/network/60/allocatedAddresses/" />
   <Description>Isolated Organization Vdc Network</Description>
   <Tasks>
      <Task
         name="task"
         status="running"
         operation="Creating Network Isolated(60)"
         ...
      </Task>
   </Tasks>
   <Configuration>
      ...
   </Configuration>
   <ServiceConfig>
      <DhcpService>
         <IsEnabled>false</IsEnabled>
         <DefaultLeaseTime>3600</DefaultLeaseTime>
         <MaxLeaseTime>7200</MaxLeaseTime>
         <IpRange>
            <StartAddress>192.168.0.2</StartAddress>
            <EndAddress>192.168.0.99</EndAddress>
         </IpRange>
      </DhcpService>
   </ServiceConfig>
</OrgVdcNetwork>