NSX-T Data Center REST API
Get specific leases of a given dhcp server (Deprecated)
Get specific leases of a given dhcp server. As a dhcp server could managemillions of leases, the API has to limit the number of the returned
leases via two mutually-excluded request parameters, i.e. "pool_id" and
"address". Either a "pool_id" or an "address" can be provided, but not both
in a same call.
If a "pool_id" is specified, the leases of the specific pool are returned.
If an "address" is specified, only the lease(s) represented y this address
is(are) returned. The "address" can be a single IP, an ip-range, or a mac
address.
Request:
Method:
GET
URI Path(s):
/api/v1/dhcp/servers/<server-id>/leases
Request Headers:
n/a
Query Parameters:
DhcpLeaseRequestParameters+
Request Body:
n/a
Example Request:
GET https://<nsx-mgr>/api/v1/dhcp/servers/9f34f749-08d9-4744-b1e9-9f079f9ce726/leases?address=184.168.1.3Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
DhcpLeases+