Management Plane API > Networking > Services > Loadbalancer

Get the statistics list of virtual servers

Returns the statistics list of virtual servers in given load balancer service.
Currently, only realtime mode is supported.

Request:

Method:
GET
URI Path(s):
/api/v1/loadbalancer/services/<service-id>/virtual-servers/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/statistics?source=realtime

Successful Response:

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

Example Response:

{ "results" : [ { "last_update_timestamp" : 1516002661141, "virtual_server_id" : "19ba1f6b-09d7-43df-ae1e-4d491d766d20", "statistics" : { "max_sessions" : 0, "bytes_in" : 0, "bytes_out_rate" : 0.0, "total_sessions" : 0, "bytes_out" : 0, "current_session_rate" : 0.0, "current_sessions" : 0, "http_request_rate" : 0.0, "bytes_in_rate" : 0.0 } }, { "last_update_timestamp" : 1516002661141, "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: