NSX-T Data Center REST API
Create an ip pool for a DHCP server (Deprecated)
Create an ip pool for a local DHCP server Deprecated: Please use Policy API: PUT /policy/api/v1/infra/segments/{segment-id} { "display_name" : "segment-1", "subnets": [ { "gateway_address": "40.1.1.1/16", "dhcp_ranges": [ "40.1.2.2-40.1.2.20" ], "dhcp_config": { "resource_type": "SegmentDhcpV4Config", "lease_time": 84600 }, "network": "40.1.2.0/24" } ], "dhcp_config_path" : "/infra/dhcp-server-configs/dhcp-server-profile", "connectivity_path": "/infra/tier-1s/mgw", "_revision" : 0 }Request:
Method:
POST
URI Path(s):
/api/v1/dhcp/servers/{server-id}/ip-pools
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
DhcpIpPool+
Example Request:
{ "display_name" : "DHCP-ip-pool-2", "gateway_ip" : "192.168.150.1", "allocation_ranges" : [ { "start" : "192.168.150.100", "end" : "192.168.150.200" } ] }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
DhcpIpPool+