Skip to main content
Set target
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/latest/logs/data-setup/v2 \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isActive": true,
  "s3": {
    "bucket": "bucket",
    "region": "us-west-2"
  }
}'
{
  "target": {
    "archiveSpec": {
      "archivingFormatId": "json_id",
      "enableTags": true,
      "isActive": true
    },
    "s3": {
      "bucket": "bucket",
      "region": "us-west-2"
    }
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structure is used to set a storage target for logs.

isActive
boolean
required
Example:

true

s3
object

This data structure represents an S3 target.

Response

This data structure is obtained after setting a storage target for logs.

target
object
required

This data structure represents a target to archive logs.

  • Target
  • Target