---
title: "Get Top-N Switch interface trends"
method: GET
path: "/network-monitoring/v1/switches/topn-interface-trends"
tags: ["Switch"]
---

# Get Top-N Switch interface trends

`GET /network-monitoring/v1/switches/topn-interface-trends`

## Request

- Base URL: `https://sso.common.cloud.hpe.com`
- URL: `https://sso.common.cloud.hpe.com/network-monitoring/v1/switches/topn-interface-trends`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://sso.common.cloud.hpe.com/as/token.oauth2`

Get top N Switches interface trends, rx bytes, tx bytes over a given time period

## Query parameters

- `site-id` string, const
- `filter` string, const

## Response `200`

Object containing interface trends related to the switches.

- TopnInterfaceTrendsResponse: Response containing interface trends related to the switches.
  - `items` TopnInterfaceTrends[], required: Object containing interface trends related to the switches.
    - `id` string, required: tenant id.
    - `type` string, required: Device type of monitoring.
    - `serial` string: Serial number of switch
    - `siteId` string: Site-id of the switch
    - `name` string: Hostname of the switch
    - `rxBytes` integer: rxbytes of the switch
    - `txBytes` integer: txBytes of the switch
  - `count` integer, required: Total number of switches.

## Other responses

- `400`: Invalid input received.
- `401`: Unauthorized. Authentication credentials are required or invalid.
- `403`: Forbidden: Access is denied.
- `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)
