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"
},
"archiveSpec": {
"archivingFormatId": "json_id",
"isActive": true,
"enableTags": true
}
}
}No description available
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"
},
"archiveSpec": {
"archivingFormatId": "json_id",
"isActive": true,
"enableTags": true
}
}
}Was this page helpful?