Target Service

Set target

Sets the log archive target configuration.

post/logs/data-setup/v2

Request

  • Base URL: https://api.eu1.coralogix.com/mgmt/openapi/5
  • URL: https://api.eu1.coralogix.com/mgmt/openapi/5/logs/data-setup/v2
  • Auth: API key in header Authorization

Request body

format'TARGET_FORMAT_UNSPECIFIED' | 'TARGET_FORMAT_CX_DATA_V1'

Target format.

isActiveboolean required

Whether archiving to this target is active.

Example request

{
  "isActive": true,
  "s3": {
    "bucket": "bucket",
    "externalId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "region": "us-west-2",
    "roleArn": "arn:aws:iam::123456789012:role/CoralogixArchive"
  }
}

Response

Example response

{
  "target": {
    "archiveSpec": {
      "archivingFormatId": "json_id",
      "enableTags": true,
      "isActive": true
    },
    "ibmCos": {
      "bucketCrn": "bucket_crn",
      "endpoint": "http://some.endpoint.com:8081",
      "serviceCrn": "service_crn"
    },
    "s3": {
      "bucket": "bucket",
      "externalId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "region": "us-west-2",
      "roleArn": "arn:aws:iam::123456789012:role/CoralogixArchive"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.