- 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 Name | Type | POST/PUT | Required | Description |
---|---|---|---|---|
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 |
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 |
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. |