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));
{
"view_folders": [
{
"id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
"name": "My Folder"
}
]
}
API key authentication
A successful response.
The response is of type object
.
Was this page helpful?
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));
{
"view_folders": [
{
"id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
"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));
{
"view_folders": [
{
"id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
"name": "My Folder"
}
]
}
API key authentication
A successful response.
The response is of type object
.
Was this page helpful?
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));
{
"view_folders": [
{
"id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
"name": "My Folder"
}
]
}