Authorizations
API key authentication
Body
application/json
Response
This data structure is obtained after setting a storage target for logs.
This data structure represents a target to archive logs.
- Target
- Target
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": {
"archiveSpec": {
"archivingFormatId": "json_id",
"enableTags": true,
"isActive": true
},
"s3": {
"bucket": "bucket",
"region": "us-west-2"
}
}
}
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": {
"archiveSpec": {
"archivingFormatId": "json_id",
"enableTags": true,
"isActive": true
},
"s3": {
"bucket": "bucket",
"region": "us-west-2"
}
}
}
API key authentication
This data structure is obtained after setting a storage target for logs.
This data structure represents a target to archive logs.
Show child attributes
Was this page helpful?