PATCH
/
cdn
/
logs_uploader
/
policies
/
{policy_id}
curl --request PATCH \
  --url https://api.gcore.com/cdn/logs_uploader/policies/{policy_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "include_empty_logs": true,
  "include_shield_logs": true,
  "name": "<string>",
  "description": "<string>",
  "retry_interval_minutes": 32,
  "rotate_interval_minutes": 32,
  "rotate_threshold_mb": 101,
  "rotate_threshold_lines": 5000,
  "date_format": "<string>",
  "field_delimiter": "<string>",
  "field_separator": "<string>",
  "fields": [
    "<string>"
  ],
  "file_name_template": "<string>",
  "format_type": "<string>",
  "tags": {}
}'
{
  "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.

Path Parameters

id
integer
required

Body

application/json

Response

200
application/json

Successful.

The response is of type object.