[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Subnet

A network subnet defined by its gateway,


Properties

integer
prefixLength Required

The prefix length of the subnet.


string
gateway Required

The gateway for the subnet.


string
dnsServer2 Optional

The second DNS server that VMs attached to this network will use.


string
dnsSuffix Optional

The DNS suffix that VMs attached to this network will use.


boolean
enabled Optional

Indicates whether the external network subnet is currently enabled.


ipRanges Optional

Range of IPs within the subnet that can be used in this network. A VM attached to this network is assigned one of these IPs.


string
dnsServer1 Optional

The first DNS server that VMs attached to this network will use.


integer
totalIpCount Optional

The number of IP addresses defined by the static IP ranges.


integer
usedIpCount Optional

The number of IP address used from the static IP ranges.

JSON Example

{
	"gateway": "string",
	"prefixLength": 0
}

Vendor Extensions

This class contains the following vendor extensions defined in the spec:
x-vcloud-property-annotations:
    dnsServer1:
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    dnsServer2:
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    dnsSuffix:
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    enabled:
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    ipRanges:
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    prefixLength:
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    totalIpCount:
        x-vcloud-added-in: "33.0"
        x-vcloud-constraints:
            - constraint: NonSearchable
            - constraint: NonSortable
    usedIpCount:
        x-vcloud-added-in: "33.0"
        x-vcloud-constraints:
            - constraint: ReadOnly
            - constraint: NonSearchable
            - constraint: NonSortable
[{"label":"Latest (v37.0)","version":"latest"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Property Of

Subnets
Used By

EdgeGatewaySubnet

Feedback

Was this page helpful?