Logs uploader
Get policies list
Changed onGet list of logs uploader policies.
get/cdn/logs_uploader/policies
Request
- Base URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cdn/logs_uploader/policies
- AuthHTTP apikey
Query parameters
searchstring
Search by policy name or id.
config_idsinteger[]
Filter by ids of related logs uploader configs that use given policy.
limitinteger
Maximum number of items to return in the response. Cannot exceed 1000.
offsetinteger
Number of items to skip from the beginning of the list.
Response
Successful.
Example response
[
{
"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": "Policy",
"description": "New policy",
"retry_interval_minutes": 32,
"rotate_interval_minutes": 32,
"rotate_threshold_mb": 252,
"rotate_threshold_lines": 5000,
"date_format": "[02/Jan/2006:15:04:05 -0700]",
"field_delimiter": ",",
"field_separator": ";",
"fields": [
"remote_addr",
"status"
],
"file_name_template": "{{YYYY}}_{{MM}}_{{DD}}_{{HH}}_{{mm}}_{{ss}}_access.log.gz",
"format_type": "json",
"tags": {},
"field_remap": {},
"field_conversions": {},
"log_sample_rate": 1,
"related_uploader_configs": [
123
]
}
]Changes
- info
added the optional property
//to the response with the status - info
added the optional property
////to the response with the status
- info
- info
added the optional property
//to the response with the status - info
added the optional property
////to the response with the status
- info