PUT
/
cdn
/
logs_uploader
/
configs
/
{config_id}
Change config
curl --request PUT \
  --url https://api.gcore.com/cdn/logs_uploader/configs/{config_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true,
  "name": "<string>",
  "policy": 123,
  "target": 123,
  "for_all_resources": false,
  "resources": [
    123
  ]
}'
{
  "id": 123,
  "client_id": 123,
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z",
  "enabled": true,
  "name": "<string>",
  "policy": 123,
  "target": 123,
  "for_all_resources": true,
  "resources": [
    123
  ],
  "status": {
    "status": "in_progress",
    "code": 123,
    "updated": "2023-11-07T05:31:56Z",
    "details": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

Body

application/json
name
string
required

Name of the config.

policy
integer
required

ID of the policy that should be assigned to given config.

target
integer
required

ID of the target to which logs should be uploaded.

enabled
boolean
default:true

Enables or disables the config.

for_all_resources
boolean
default:false

If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.

resources
integer[]

List of resource IDs to which the config should be applied.

Response

Successful.

id
integer
client_id
integer

Client that owns the config.

created
string<date-time>

Time when the config was created.

updated
string<date-time>

Time when the config was updated.

enabled
boolean

Enables or disables the config.

name
string

Name of the config.

policy
integer

ID of the policy that should be assigned to given config.

target
integer

ID of the target to which logs should be uploaded.

for_all_resources
boolean

If set to true, the config will be applied to all CDN resources. If set to false, the config will be applied to the resources specified in the resources field.

resources
integer[]

List of resource IDs to which the config should be applied.

status
object

Validation status of the logs uploader config.