Management Plane API > Networking > Services > DHCP

Get the realized state of a dhcp ip pool

Return realized state information of a dhcp ip pool.
After a dhcp ip pool is created or updated, you can invoke this API to get
the realization information of the ip pool.

Request:

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

Example Request:

GET https://<nsx-mgr>/api/v1/dhcp/servers/f962173f-ac03-4d08-8366-56a41779f61d/ip-pools/1b6cb97f-ffa3-407c-b2ed-a9616feb95dd/state?request_id=3433a089-feff-4ede-a049-6950f201f0b5

Successful Response:

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

Example Response:

{ "details": [ { "sub_system_type": "TransportNode", "sub_system_id": "fe651e63-04bd-43a4-a8ec-45381a3b71b9", "state": "in_progress", "failure_message": "CCP Id:ab5958df-d98a-468e-a72b-d89dcdae5346, Message:State realization is in progress at the node." }, { "sub_system_type": "TransportNode", "sub_system_id": "ebe174ac-e4f1-4135-ba72-3dd2eb7099e3", "state": "in_sync" } ], "state": "in_progress", "failure_message": "The state realization is in progress at transport nodes." }

Required Permissions:

read

Feature:

dhcp_servers

Additional Errors: