Skip to main content
Set target
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/logs/data-setup/v2 \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isActive": true
}
'
{
  "target": {
    "ibmCos": {
      "bucketCrn": "bucket_crn",
      "endpoint": "http://some.endpoint.com:8081",
      "serviceCrn": "service_crn"
    },
    "archiveSpec": {
      "archivingFormatId": "json_id",
      "enableTags": true,
      "isActive": true
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Whether archiving to this target is active.

Example:

true

format
enum<string>

Target format.

Available options:
TARGET_FORMAT_UNSPECIFIED,
TARGET_FORMAT_CX_DATA_V1
s3
S3 Target Spec · object

This data structure represents an S3 target.

Response

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

target
Target · object
required

This data structure represents a target to archive logs.