System Administration > Configuration > Fabric > Pool Management > IP Blocks

Create subnet of specified size within an IP block

Carves out a subnet of requested size from the specified IP block. The "size"
parameter and the "block_id " are the requireds field while invoking this API.
If the IP block has sufficient resources/space to allocate a subnet of specified size,
the response will contain all the details of the newly created subnet including the
display_name, description, cidr & allocation_ranges. Returns a conflict error
if the IP block does not have enough resources/space to allocate a subnet of
the requested size.

Request:

Method:
POST
URI Path(s):
/api/v1/pools/ip-subnets
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IpBlockSubnet+

Example Request:

POST https://<nsx-mgr>/api/v1/pools/ip-subnets { "display_name": "IPBlock-Subnet-1", "description": "IPBlock-Subnet-1 Description", "size": "255", "block_id":"5a1c354d-bf7a-42ce-8e27-57e75e803fa0" }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
IpBlockSubnet+

Example Response:

{ "_revision": 0, "id": "5a1c354d-bf7a-42ce-8e27-57e75e803fa0", "display_name": "IPBlock-1-Subnet-1", "description": "IPBlock-1-Subnet-1 Description", "resource_type": "IpBlockSubnet", "cidr": "192.168.1.0/24", "allocation_ranges": [ { "start": "192.168.1.1", "end": "192.168.1.255" } ], "_last_modified_user": "admin", "_last_modified_time": 1514691880507, "_create_time": 1514691880507, "_create_user": "admin" }

Required Permissions:

crud

Feature:

ipam_ipam

Additional Errors: