NSX-T Data Center REST API

Get LBPool statistics information

Get LBPoolStatistics information.
- no enforcement point path specified: Information will be aggregated from
each enforcement point.
- {enforcement_point_path}: Information will be retrieved only from the
given enforcement point.

NSX Load Balancer availability in terms of use-cases and editions is
specified in NSX Feature and Edition Guide. Please review before consuming
those APIs.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/lb-services/{lb-service-id}/lb-pools/{lb-pool-id}/statistics
Request Headers:
n/a
Query Parameters:
PolicyRuntimeRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/lb-services/lb-1/lb-pools/pool-0/statistics?source=realtime

Successful Response:

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

Example Response:

{ "results" : [ { "pool_path" : "/infra/lb-pools/pool-0", "statistics" : { "current_sessions" : 0, "max_sessions" : 0, "total_sessions" : 0, "bytes_in" : 0, "bytes_out" : 0, "packets_in" : 0, "packets_out" : 0, "current_session_rate" : 0.0 }, "members" : [ { "ip_address" : "192.168.100.161", "statistics" : { "current_sessions" : 0, "max_sessions" : 0, "total_sessions" : 0, "bytes_in" : 0, "bytes_out" : 0, "packets_in" : 0, "packets_out" : 0, "current_session_rate" : 0.0 } } ], "last_update_timestamp" : 1739346189483, "enforcement_point_path" : "/infra/sites/default/enforcement-points/default", "resource_type" : "LBPoolStatistics" } ], "intent_path" : "/infra/lb-pools/pool-0" }

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: