No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/target';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"isActive":true,"s3":{"bucket":"bucket","region":"us-west-2"}}'
};
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
}
}
}
API key authentication
This data structure is used to set a storage target for logs.
A successful response.
This data structure is obtained after setting a storage target for logs.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/target';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"isActive":true,"s3":{"bucket":"bucket","region":"us-west-2"}}'
};
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: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"isActive":true,"s3":{"bucket":"bucket","region":"us-west-2"}}'
};
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
}
}
}
API key authentication
This data structure is used to set a storage target for logs.
A successful response.
This data structure is obtained after setting a storage target for logs.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/target';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"isActive":true,"s3":{"bucket":"bucket","region":"us-west-2"}}'
};
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
}
}
}