NSX-T Data Center REST API

Get the statistics of load balancer pool (Deprecated)

Returns the statistics of the given load balancer pool by given load balancer
service id and load balancer pool id.
Currently, only realtime mode is supported.
Deprecated:
Use the following Policy API -
GET /policy/api/v1/infra/lb-services/<lb-service-id>/lb-pools/<lb-pool-id>/statistics?source=realtime

Request:

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

Successful Response:

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

Example Response:

{ "last_update_timestamp" : 1516002997693, "members" : [ { "port" : "80", "ip_address" : "192.168.2.10", "statistics" : { "max_sessions" : 1, "bytes_in" : 3948, "bytes_out_rate" : 0.0, "total_sessions" : 8, "bytes_out" : 686, "current_session_rate" : 0.0, "current_sessions" : 0, "http_request_rate" : 0.0, "bytes_in_rate" : 0.0 } }, { "port" : "80", "ip_address" : "192.168.1.10", "statistics" : { "max_sessions" : 1, "bytes_in" : 5076, "bytes_out_rate" : 0.0, "total_sessions" : 9, "bytes_out" : 882, "current_session_rate" : 0.0, "current_sessions" : 0, "http_request_rate" : 0.0, "bytes_in_rate" : 0.0 } } ], "pool_id" : "029a843e-ae42-4bdf-9f84-8b1f94cb380d", "statistics" : { "max_sessions" : 1, "bytes_in" : 9024, "bytes_out_rate" : 0.0, "total_sessions" : 17, "bytes_out" : 1568, "current_session_rate" : 0.0, "current_sessions" : 0, "http_request_rate" : 0.0, "bytes_in_rate" : 0.0 } }

Required Permissions:

read

Feature:

lb_pools

Additional Errors: