curl --request GET \
--url https://api.gcore.com/cdn/logs_uploader/policies/{policy_id} \
--header 'Authorization: <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
]
}
Get information about logs uploader policy.
curl --request GET \
--url https://api.gcore.com/cdn/logs_uploader/policies/{policy_id} \
--header 'Authorization: <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
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Successful.
The response is of type object
.
Was this page helpful?