POST
/
v2
/
target:validate
const fetch = require('node-fetch');

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

let options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
  body: '{"isActive":true,"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"}}'
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "isValid": true
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

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

Response

200
application/json

A successful response.

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