const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/retentions/enabled';
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));
{
"enableTags": true
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/retentions/enabled';
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));
{
"enableTags": true
}
API key authentication
A successful response.
This data structure is obtained when retrieving the active status of retentions
Was this page helpful?