Policy > Networking > IP Management > DHCP > DHCP Server Configs

Reset DHCP server statistics counters

Reset DHCP statistics counters of a DHCP server represented by the
connectivity_path and the enforecement_point_path where the
dhcp-server-config was applied to. The connectivity_path can be the Tier0
path, Tier1 path or a segment path. If the given Tier0/1 or Segment has
DHCP server applied, the resetting will succeed and the DHCP statistics
counters will be reset to 0. But if it has no DHCP server applied, the
reseting will fail with proper error message.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/dhcp-server-configs/{config-id}/stats?action=reset
/policy/api/v1/global-infra/dhcp-server-configs/{config-id}/stats?action=reset
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/dhcp-server-configs/{config-id}/stats?action=reset
Request Headers:
n/a
Query Parameters:
DhcpServerRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/dhcp-server-configs/default/stats?enforcement_point_path=/infra/sites/default/enforcement-points/default

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

{}

Required Permissions:

crud

Feature:

policy_dhcp

Additional Errors: