PUT
/
cdn
/
raw_log_settings
curl --request PUT \
  --url https://api.gcore.com/cdn/raw_log_settings \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "storage_type": "s3",
  "enabled": true,
  "ignore_empty_logs": true,
  "for_all_resources": false,
  "all_resources_bucket": null,
  "all_resources_folder": null,
  "s3_type": "amazon",
  "s3_aws_region": 1,
  "s3_hostname": null,
  "s3_access_key_id": "AJKHGJDKHFG",
  "s3_host_bucket": null,
  "s3_bucket_location": null,
  "folders": [
    {
      "folder": "bucket-subfolder",
      "bucket": "first",
      "cdn_resource": 111
    },
    {
      "bucket": "second",
      "cdn_resource": 222
    }
  ],
  "archive_size_mb": 1000
}'

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Response

200

Successful.