const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:batchGet?ids=SOME_ARRAY_VALUE';
let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"incidents": {},
"notFoundIds": [
"not_found_id_1",
"not_found_id_2"
]
}
Retrieve multiple incidents by their IDs in a single request.
Requires the following permissions:
incidents:read
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:batchGet?ids=SOME_ARRAY_VALUE';
let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"incidents": {},
"notFoundIds": [
"not_found_id_1",
"not_found_id_2"
]
}
API key authentication
A successful response.
Response containing the requested incidents and any IDs that weren't found
Was this page helpful?