Create vCloud Organization Network
To create an organization network, use the following request:
| |
You can create the following types of organization networks:
Create Direct Network
XML Request Example
| |
JSON Request Example
| |
The HTTP 201 response is returned on the successful creation of a direct NSX-T network with the shared parameter set to 0. The HTTP 422 response is returned upon failure to create a direct NSX-T network with the shared parameter set to 1.
Where:
- label - the name of the network
- vdc_id - the ID of the resource pool to which the network will be connected
- fence_mode - the type of the organization network, in this case, it is bridged
- parent_network_id - the ID of the external network with which the direct organization network will be associated
- shared - set 1 to make the direct organization network shared; otherwise, set 0
Create Routed Network
XML Request Example
| |
JSON Request Example
| |
The HTTP 201 response is returned on the successful creation of a routed NSX-T network with the shared parameter set to 0. The HTTP 422 response is returned upon failure to create a routed NSX-T network with the shared parameter set to 1.
Where:
- label - the name of the network
- vdc_id - the ID of the resource pool to which the network will be connected
- fence_mode - the type of the organization network, in this case, it is ’natRouted'
- parent_network_id - the ID of the external network with which the routed organization network will be associated
- network_gateway_cidr - specify a network address (CIDR address format with gateway address)
- shared - set 1 to make the routed organization network shared; otherwise, set 0
- primary_dns - the IP address of the primary domain name system (DNS) server
- secondary_dns - the IP address of the secondary domain name system (DNS) server
- dns_suffix - the DNS suffix
- ip_ranges_attributes - an array of static IP pools (applicable to isolated and routed org networks)
- ip_ranges_attribute - а static IP pool (applicable to isolated and routed org networks)
- start_address - specify the start IP address
- end_address - specify the end IP address
- edge_gateway - the edge gateway to which the network will be connected
Create Isolated Network
XML Request Example
| |
JSON Request Example
| |
The HTTP 201 response is returned on the successful creation of an isolated NSX-T network with the shared parameter set to 0. The HTTP 422 response is returned upon failure to create an isolated NSX-T network with the shared parameter set to 1.
Where:
- label - the name of the network
- vdc_id - the ID of the resource pool to which the network will be connected
- fence_mode - the type of the organization network, in this case, it is isolated
- parent_network_id - the ID of the external network with which the isolated organization network will be associated
- network_gateway_cidr - specify a network address (CIDR address format with gateway address)
- shared - set 1 to make the isolated organization network shared; otherwise, set 0
- primary_dns - the IP address of the primary domain name system (DNS) server
- secondary_dns - the IP address of the secondary domain name system (DNS) server
- dns_suffix - the DNS suffix
- ip_ranges_attributes - an array of static IP pools (applicable to isolated and routed org networks)
- ip_ranges_attribute - а static IP pool (applicable to isolated and routed org networks)
- start_address - specify the start IP address
- end_address - specify the end IP address
- edge_gateway - the edge gateway to which the network will be connected
- organization_id - the ID of the organization