GET
/
v2
/
target
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/v2/target';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "target": {
    "s3": {
      "bucket": "bucket",
      "region": "us-west-2"
    },
    "ibmCos": {
      "bucketCrn": "bucket_crn",
      "endpoint": "http://some.endpoint.com:8081",
      "serviceCrn": "service_crn",
      "bucketType": "IBM_BUCKET_TYPE_UNSPECIFIED"
    },
    "archiveSpec": {
      "archivingFormatId": "json_id",
      "isActive": true,
      "enableTags": true
    }
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Response

200
application/json

A successful response.

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