Management Plane API > Networking > Services > Loadbalancer

Read the usage information of the given load balancer service

API to fetch the capacity and current usage of the given load balancer
service.

Request:

Method:
GET
URI Path(s):
/api/v1/loadbalancer/services/<service-id>/usage
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/loadbalancer/services/b6a5bffa-f6a9-447c-936f-4633f9eb43g1/usage

Successful Response:

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

Example Response:

{ "service_id" : "b6a5bffa-f6a9-447c-936f-4633f9eb43g1", "service_size" : "SMALL", "virtual_server_capacity" : 10, "pool_capacity" : 10, "pool_member_capacity" : 30, "current_virtual_server_count : 2, "current_pool_count : 10, "current_pool_member_count : 20, "usage_percentage" : 100.0, "severity" : "RED" }

Required Permissions:

read

Feature:

lb_services

Additional Errors: