curl --request PUT \
--url https://api.gcore.com/cdn/raw_log_settings \
--header 'Authorization: <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
}'
PATCH method is not allowed.
curl --request PUT \
--url https://api.gcore.com/cdn/raw_log_settings \
--header 'Authorization: <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
}'
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.
Was this page helpful?