Neutron Subnet

Media Type
[application/vnd.org.midonet.neutron.Subnet-v1+json]
Collection Media Type
[application/vnd.org.midonet.neutron.Subnets-v1+json]
GET     /neutron/subnets
GET     /neutron/subnets/:subnetId
POST    /neutron/subnets
PUT     /neutron/subnets/:subnetId
DELETE  /neutron/subnets/:subnetid
Field NameTypePOST/PUTRequiredDescription

id

UUID

POST

No

A unique identifier of the resource. If this field is omitted in the POST request, a random UUID is generated.

cidr

String

POST

Yes

The subnet address in CIDR Format should be x.x.x.x/y, such as 10.0.0.0/24.

network_id

String

POST

Yes

The identifier of the Neutron network.

tenant_id

String

POST

Yes

The identifier of the tenant that owns the subnet.

allocation_pools

Array of (String, String)

POST

No

The IP addresses allocation pools for DHCP. Each array element is a JSON indicating the start and end of the allocation pool address range, such as { "start": "10.0.0.100", "end": "10.0.0.200" }.

enable_dhcp

Boolean

POST/PUT

No

Indicates whether DHCP is enabled on this subnet. Default is true (enabled).

dns_nameservers

Array of String

POST/PUT

No

The IP addresses for the DNS servers.

host_routes

Array of (String, String)

POST/PUT

No

The host routes for this subnet. Each array element is a JSON indicating the destination and nexthop IP addresses for each route, such as { "destination: "192.168.0.100", "nexthop": "10.0.0.100" }

gateway_ip

String

POST/PUT

No

The IP address for the gateway of this subnet.

ip_version

Integer

POST/PUT

No

The version of IP address (4 or 6). Currently only 4 is supported.

name

String

POST/PUT

No

The subnet name.

shared

Boolean

POST/PUT

No

Indicates whether this resource is shared among tenants.

Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.