---
title: "Get LAG summary for a Switch"
method: GET
path: "/network-monitoring/v1/switches/{serial-number}/lag"
tags: ["Switch"]
---

# Get LAG summary for a Switch

`GET /network-monitoring/v1/switches/{serial-number}/lag`

## Request

- Base URL: `https://sso.common.cloud.hpe.com`
- URL: `https://sso.common.cloud.hpe.com/network-monitoring/v1/switches/{serial-number}/lag`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://sso.common.cloud.hpe.com/as/token.oauth2`

This API provides a summary of link aggregation group (LAG) details for the specified serial number or stack id. Conductor serial may also be used instead of a stack id

## Path parameters

- `serial-number` string, const, required: The device serial number.

## Response `200`

Object containing the lag summary information

- SwitchLagSummaryResponse: Response containing a lag summary and the total count.
  - `items` SwitchLagSummary[], required: List of lag summary.
    - `id` string, required: Lag name.
    - `type` string, required: Type of the switch.
    - `name` string: Lag name.
    - `count` integer: Count of the interfaces with lag.
    - `ports` string[]: Names of the switch interface.
  - `count` integer, required: Total number of lags.

## Other responses

- `400`: Invalid input received.
- `401`: Unauthorized. Authentication credentials are required or invalid.
- `403`: Forbidden: Access is denied.
- `404`: Device with serial number not found.
- `429`: Too Many Requests. The user has sent too many requests in a given amount of time.
- `500`: Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.dev/arubanetworks/apis/authorization.md) - [All operations](https://skmtc.dev/arubanetworks/apis/authorization/llms.txt) - [OpenAPI document](https://skmtc.dev/arubanetworks/apis/authorization/revisions/74c95058b11f?raw)
