NSX-T Data Center REST API
Create subnet of specified size within an IP block (Deprecated)
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.
Deprecated:
This rest routine is deprecated. Use /infra/ip-pools/
Request:
Method:
POST
URI Path(s):
/api/v1/pools/ip-subnets
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IpBlockSubnet+
Example Request:
{ "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+