GET
/
cdn
/
activity_log
/
requests
Get CDN activity logs
curl --request GET \
  --url https://api.gcore.com/cdn/activity_log/requests \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "next": "https://api.gcore.com/cdn/activity_log/requests?offset=20&limit=10",
  "previous": "https://api.gcore.com/cdn/activity_log/requests?offset=10&limit=10",
  "results": [
    {
      "id": 1,
      "user_id": 174,
      "token_id": 3,
      "client_id": 174,
      "requested_at": "2021-07-07T09:02:29.871030Z",
      "path": "/resources/1/purge",
      "remote_ip_address": "1.2.3.4",
      "host": "api.gcore.com",
      "method": "POST",
      "query_params": "{}",
      "data": {
        "paths": [
          "/url-path-1",
          "/url-path-2"
        ]
      },
      "status_code": 201,
      "actions": []
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

path
string

Path that a requested URL should contain.

user_id
integer

User ID.

token_id
integer

Permanent API token ID. Requests made with this token should be displayed.

client_id
integer

Client ID.

method
string

HTTP method type of requests.

Use upper case only.

Example: * ?method=DELETE

min_requested_at
string

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

You can specify a date with a time separated by a space, or just a date.

Examples: * &min_requested_at=2021-05-05 12:00:00 * &min_requested_at=2021-05-05

max_requested_at
string

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

You can specify a date with a time separated by a space, or just a date.

Examples: * &max_requested_at=2021-05-05 12:00:00 * &max_requested_at=2021-05-05

remote_ip_address
string

IP address or part of it from which requests are sent.

status_code
integer

Status code returned in the response.

Specify the first numbers of a status code to get requests for a group of status codes.

To filter the activity logs by 4xx codes, use: * &status_code=4 -

limit
integer

Maximum number of items in response.

offset
integer

Offset relative to the beginning of activity logs.

Response

Successful.

count
integer

Total number of activity logs records.

next
string

URL to the next activity logs records slice.

previous
string

URL to the previous activity logs records slice.

results
object[]

Activity logs records.