Management Plane API > Networking > Services > Loadbalancer

Get the statistics of the given load balancer virtual server

Returns the statistics of the load balancer virtual server by given load
balancer serives id and load balancer virtual server id.

Request:

Method:
GET
URI Path(s):
/api/v1/loadbalancer/services/<service-id>/virtual-servers/<virtual-server-id>/statistics
Request Headers:
n/a
Query Parameters:
DataSourceParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/loadbalancer/services/a0de28f3-c0f7-445c-a624-265175da795d/virtual-servers/6be3337b-42c9-4ad6-8184-82ecb7a3234d/statistics?source=realtime

Successful Response:

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

Example Response:

{ "last_update_timestamp" : 1516002554036, "virtual_server_id" : "6be3337b-42c9-4ad6-8184-82ecb7a3234d", "statistics" : { "max_sessions" : 1, "bytes_in" : 1027, "bytes_out_rate" : 0.0, "total_sessions" : 13, "bytes_out" : 7358, "current_session_rate" : 0.0, "current_sessions" : 0, "http_request_rate" : 0.0, "bytes_in_rate" : 0.0 } }

Required Permissions:

read

Feature:

lb_virtual_servers

Additional Errors: