---
title: "Get l2 Statistics"
method: POST
path: "/statistics/l2_interface"
tags: ["statistics"]
---

# Get l2 Statistics

`POST /statistics/l2_interface`

## Request body

- StatisticsL2Request
  - `since` string, date-time, required
  - `until` string, date-time, required
  - `sample_rate` 'auto' | '10s' | '30s' | '1m' | '5m' | '15m' | '1h' — Enum defining the sample rate in any Statistics API request
  - `column` StatisticsL2MetricsColumns[], required
  - `filters` StatisticsL2Filters, required
    - `vrf_name` string, nullable
    - `alias_name` string, nullable
    - `l2_name` string, nullable
    - `tenant_name` string, nullable
    - `node_name` string, nullable
    - `system_name` string, nullable
  - `flags` StatisticsFlags

## Response `200`

Successful Response

- StatisticsResponse
  - `samples` object[]
  - `sample_rate` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/zayo/apis/niro-api.md) · [All operations](https://skmtc.net/zayo/apis/niro-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zayo/niro-api/revisions/c52ac26e1766/schema)
