NSX-T Data Center REST API

This API retrieves information about IP allocation for ports within the specified subnet that are managed by a DHCP server.

This API retrieves information about IP allocation for ports within the specified subnet that are managed by a DHCP server.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/subnets/{subnet-id}/state/dhcp-server-managed-ports
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Successful Response:

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

Example Response:

{ "ports": [ { "path": "/orgs/default/projects/default/vpcs/application_vpc/subnets/db_priv_sub/ports/default:2af17a0c-2bc2-4486-aa36-b2c3066f69a9", "ip_allocation_state": "FAILURE", "client_mode": "STATIC", "mac_address": "00:50:56:a4:a8:b4", "ip_address": "0.0.0.0", "ip_consumed": false }, { "path": "/orgs/default/projects/default/vpcs/application_vpc/subnets/db_priv_sub/ports/default:4af17a0d-2bc3-4499-aa36-b2c3066f47b2", "ip_allocation_state": "SUCCESS", "client_mode": "DHCP", "mac_address": "44:60:56:a4:a3:a5", "ip_address": "192.168.100.162", "ip_consumed": true } ] }

Required Permissions:

read

Feature:

policy_dhcp

Additional Errors: