Management Plane API > Networking > Services > DHCP

Get a DHCP server with v4 and/or v6 servers

Retrieve a logical DHCP server specified by server id.

Request:

Method:
GET
URI Path(s):
/api/v1/dhcp/servers/<server-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

Get https://<nsx-mgr>/api/v1/dhcp/servers/b6a5bffa-f6a9-447c-936f-4633f9eb43a7

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LogicalDhcpServer+

Example Response:

{ "resource_type" : "LogicalDhcpServer", "id" : "b6a5bffa-f6a9-447c-936f-4633f9eb43a7", "display_name" : "DHCP-server-2", "dhcp_profile_id" : "faf85fb5-9242-4d24-abca-0ca59b2b669b", "ipv4_dhcp_server" : { "dhcp_server_ip" : "192.168.110.50/24" }, "attached_logical_port_id" : "ecde011f-528f-4ccb-a147-dd45d74103b6", "_create_time" : 1478304339963, "_create_user" : "admin", "_last_modified_user" : "admin", "_system_owned" : false, "_last_modified_time" : 1478304339963, "_revision" : 0 }

Required Permissions:

read

Feature:

dhcp_servers

Additional Errors: