GET
/
cdn
/
statistics
/
shield_usage
/
aggregated
curl --request GET \
  --url https://api.gcore.com/cdn/statistics/shield_usage/aggregated \
  --header 'APIKey: <api-key>'
{
  "resource": {
    "1": {
      "metrics": {
        "shield_usage": 1
      }
    }
  }
}

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

from
string
required

Beginning of the requested time period (ISO 8601/RFC 3339 format, UTC.)

to
string
required

End of the requested time period (ISO 8601/RFC 3339 format, UTC.)

group_by
string

Output data grouping. Possible value:

  • resource - Data is grouped by CDN resource.
resource
integer

CDN resources IDs by that statistics data is grouped. To request multiple values, use: * &resource=1&resource=2

flat
boolean

The waу parameters are arranged in the response. Possible values:

  • true – Flat structure is used.
  • false – Embedded structure is used (default.)

Response

200
application/json

Successful.

The response is of type object.