GET
/
cdn
/
logs_uploader
/
policies
curl --request GET \
  --url https://api.gcore.com/cdn/logs_uploader/policies \
  --header 'APIKey: <api-key>'
[
  {
    "id": 123,
    "client_id": 123,
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z",
    "include_empty_logs": true,
    "include_shield_logs": true,
    "name": "<string>",
    "description": "<string>",
    "retry_interval_minutes": 32,
    "rotate_interval_minutes": 32,
    "rotate_threshold_mb": 252,
    "rotate_threshold_lines": 5000,
    "date_format": "<string>",
    "field_delimiter": "<string>",
    "field_separator": "<string>",
    "fields": [
      "<string>"
    ],
    "file_name_template": "<string>",
    "format_type": "<string>",
    "tags": {},
    "related_uploader_configs": [
      123
    ]
  }
]

Authorizations

APIKey
string
header
required

API key for authentication.

Query Parameters

Search by policy name or id.

config_ids
integer[]

Filter by ids of related logs uploader configs that use given policy.

Response

200
application/json

Successful.

The response is of type object[].