POST
/
cdn
/
logs_uploader
/
targets
curl --request POST \
  --url https://api.gcore.com/cdn/logs_uploader/targets \
  --header 'APIKey: <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
  }
}

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Response

201
application/json

Successful.

The response is of type object.