Authorizations
API key authentication
Response
200 - application/json
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/view_folders';
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));
{
"folders": [
{
"id": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
"name": "My Folder"
}
]
}
List view’s folders
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/view_folders';
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));
{
"folders": [
{
"id": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
"name": "My Folder"
}
]
}
API key authentication
Show child attributes
Was this page helpful?