GET
/
cdn
/
activity_log
/
requests
curl --request GET \
  --url https://api.gcore.com/cdn/activity_log/requests \
  --header 'APIKey: <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",
    "result": [
      {
        "id": 1,
        "user_id": 174,
        "token_id": 3,
        "client_id": 174,
        "requested_at": "2021-07-07 09:02:29.871030+00:00",
        "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

APIKey
string
header
required

API key for authentication.

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

200
application/json

Successful.

The response is of type object[].