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",
    "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

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.

id
integer

Activity logs record ID.

user_id
integer

ID of the user who made the request.

token_id
integer

Permanent API token ID with which the request was made.

client_id
integer

ID of the client who made the request.

requested_at
string

Date and time when the request was made.

path
string

Request URL.

remote_ip_address
string

IP address from which the request was made.

host
string

Host from which the request was made.

method
string

Request HTTP method.

query_params
string

Request parameters.

data
string

Request body.

status_code
integer

Status code that is returned in the response.

actions
object

State of a requested object before and after the request.