curl --request POST \
--url https://api.gcore.com/cdn/raw_log_settings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"storage_type": "<string>",
"ignore_empty_logs": true,
"for_all_resources": true,
"all_resources_bucket": "<string>",
"all_resources_folder": "<string>",
"folders": [
{
"id": 123,
"bucket": "<string>",
"folder": "<string>",
"cdn_resource": 123
}
],
"s3_type": "<string>",
"s3_aws_region": 123,
"s3_access_key_id": "<string>",
"s3_secret_key": "<string>",
"s3_hostname": "<string>",
"s3_host_bucket": "<string>",
"s3_bucket_location": "<string>",
"ftp_hostname": "<string>",
"ftp_prepend_folder": "<string>",
"ftp_login": "<string>",
"ftp_password": "<string>",
"sftp_hostname": "<string>",
"sftp_prepend_folder": "<string>",
"sftp_login": "<string>",
"sftp_password": "<string>",
"sftp_private_key": "<string>",
"sftp_key_passphrase": "<string>",
"archive_size_mb": 1250
}'
curl --request POST \
--url https://api.gcore.com/cdn/raw_log_settings \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"storage_type": "<string>",
"ignore_empty_logs": true,
"for_all_resources": true,
"all_resources_bucket": "<string>",
"all_resources_folder": "<string>",
"folders": [
{
"id": 123,
"bucket": "<string>",
"folder": "<string>",
"cdn_resource": 123
}
],
"s3_type": "<string>",
"s3_aws_region": 123,
"s3_access_key_id": "<string>",
"s3_secret_key": "<string>",
"s3_hostname": "<string>",
"s3_host_bucket": "<string>",
"s3_bucket_location": "<string>",
"ftp_hostname": "<string>",
"ftp_prepend_folder": "<string>",
"ftp_login": "<string>",
"ftp_password": "<string>",
"sftp_hostname": "<string>",
"sftp_prepend_folder": "<string>",
"sftp_login": "<string>",
"sftp_password": "<string>",
"sftp_private_key": "<string>",
"sftp_key_passphrase": "<string>",
"archive_size_mb": 1250
}'
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?