Authorizations
API key authentication
Response
200 - application/json
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/views';
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));
{
"views": [
{
"filters": {
"filters": [
{
"name": "applicationName",
"selectedValues": [
{
"key": "<string>",
"value": true
}
]
}
]
},
"folderId": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
"id": 52,
"isCompactMode": true,
"name": "Logs view",
"searchQuery": {
"query": "<string>"
},
"timeSelection": {
"quickSelection": {
"caption": "Last Hour",
"seconds": 3600
}
},
"viewType": "VIEW_TYPE_UNSPECIFIED"
}
]
}
Lists all company public views
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/views';
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));
{
"views": [
{
"filters": {
"filters": [
{
"name": "applicationName",
"selectedValues": [
{
"key": "<string>",
"value": true
}
]
}
]
},
"folderId": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
"id": 52,
"isCompactMode": true,
"name": "Logs view",
"searchQuery": {
"query": "<string>"
},
"timeSelection": {
"quickSelection": {
"caption": "Last Hour",
"seconds": 3600
}
},
"viewType": "VIEW_TYPE_UNSPECIFIED"
}
]
}
API key authentication
Show child attributes
Was this page helpful?