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>'
[
  {
    "id": 123,
    "user_id": 123,
    "token_id": 123,
    "client_id": 123,
    "requested_at": "<string>",
    "path": "<string>",
    "remote_ip_address": "<string>",
    "host": "<string>",
    "method": "<string>",
    "query_params": "<string>",
    "data": "<string>",
    "status_code": 123,
    "actions": {
      "action_type": "<any>",
      "state_before_request": {},
      "state_after_request": {}
    }
  }
]

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

200
application/json

Successful.

The response is of type object[].