Request URL

Network API v2.0

POST /v2.0/lb/subnets

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header

Request Json

Normal response codes

201

Example

curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \
https://networking.tyo1.cloud.z.com/v2.0/lb/subnets
HTTP/1.1 201 Created
Server: openresty/1.7.10.1
Date: Fri, 08 May 2015 11:40:57 GMT
Content-Type: application/json
Content-Length: 408
Connection: keep-alive

{
  "subnet": {
    "name": "vip-157-7-94-35-32",
    "enable_dhcp": false,
    "network_id": "a41e74fa-49ab-494e-8992-f76e68c81cf7",
    "tenant_id": "22394afc818d471ca2f0308c06ae7460",
    "dns_nameservers": [],
    "gateway_ip": null,
    "ipv6_ra_mode": null,
    "allocation_pools": [
      {
        "start": "157.7.94.35",
        "end": "157.7.94.35"
      }
    ],
    "host_routes": [],
    "ip_version": 4,
    "ipv6_address_mode": null,
    "cidr": "157.7.94.35/32",
    "id": "d404d6a4-376c-4ddb-a87a-6ac1b4ff95f3"
  }
}