curl --request PUT \
--url https://api.gcore.com/cdn/logs_uploader/targets/{target_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"storage_type": "s3_gcore",
"name": "Target",
"description": "<string>",
"config": {
"access_key_id": "<string>",
"secret_access_key": "<string>",
"region": "<string>",
"bucket_name": "<string>",
"directory": "<string>",
"endpoint": "<string>",
"use_path_style": true
}
}'
{
"id": 123,
"client_id": 123,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"storage_type": "s3_gcore",
"name": "<string>",
"description": "<string>",
"related_uploader_configs": [
123
],
"status": {
"status": "in_progress",
"code": 123,
"updated": "2023-11-07T05:31:56Z",
"details": "<string>"
},
"config": {
"access_key_id": "<string>",
"region": "<string>",
"bucket_name": "<string>",
"directory": "<string>",
"endpoint": "<string>",
"use_path_style": true
}
}
Change logs uploader target.
curl --request PUT \
--url https://api.gcore.com/cdn/logs_uploader/targets/{target_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"storage_type": "s3_gcore",
"name": "Target",
"description": "<string>",
"config": {
"access_key_id": "<string>",
"secret_access_key": "<string>",
"region": "<string>",
"bucket_name": "<string>",
"directory": "<string>",
"endpoint": "<string>",
"use_path_style": true
}
}'
{
"id": 123,
"client_id": 123,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"storage_type": "s3_gcore",
"name": "<string>",
"description": "<string>",
"related_uploader_configs": [
123
],
"status": {
"status": "in_progress",
"code": 123,
"updated": "2023-11-07T05:31:56Z",
"details": "<string>"
},
"config": {
"access_key_id": "<string>",
"region": "<string>",
"bucket_name": "<string>",
"directory": "<string>",
"endpoint": "<string>",
"use_path_style": true
}
}
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?