const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/alerts/download';
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));
{
"result": {},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}
Download a list of all accessible alert definitions in base64-encoded byte format.
Requires the following permissions:
alerts:ReadConfig
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/alerts/download';
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));
{
"result": {},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}
API key authentication
A successful response.(streaming responses)
The response is of type object
.
Was this page helpful?