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
+
DataSourceParameters
(
schema
)
Name
Description
Type
Notes
source
The data source, either realtime or cached. If not provided, cached data is returned.
DataSourceType
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
+
LbVirtualServerStatistics
(
schema
)
Name
Description
Type
Notes
last_update_timestamp
Timestamp when the data was last updated
EpochMsTimestamp
statistics
Virtual server statistics counter
LbStatisticsCounter
Required
virtual_server_id
load balancer virtual server identifier
string
Required
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:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable