---
title: "Aggregated origin shielding usage statistics"
method: GET
path: "/cdn/statistics/shield_usage/aggregated"
tags: ["CDN Statistics"]
---

# Aggregated origin shielding usage statistics

`GET /cdn/statistics/shield_usage/aggregated`

The number of CDN resources that use origin shielding.

Request URL parameters should be added as a query string after the endpoint.

## Query parameters

- `from` string, required
- `to` string, required
- `group_by` string
- `resource` integer
- `flat` boolean

## Response `200`

Successful.

- GetShieldUsageAggregatedStat
  - `resource` object — Resources IDs by which statistics data is grouped.
  - `1 (example)` object — CDN resource ID for which statistics data is shown.
  - `metrics` object — Statistics parameters.
  - `shield_usage` string — Number of CDN resources that used origin shielding.

## Other responses

- `204` — There is no data for the requested time period.

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
