Authorizations
API key authentication
Body
application/json
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"description":"custom_enrichment_description","file":{"extension":"csv","name":"file_name","size":100,"textual":"row1,row2 value1,value2"},"name":"custom_enrichment_name"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"customEnrichment": {
"description": "<string>",
"fileName": "<string>",
"fileSize": 123,
"id": 123,
"isQueryOnly": true,
"name": "<string>",
"version": 123
},
"message": "Custom enrichment created successfully"
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"description":"custom_enrichment_description","file":{"extension":"csv","name":"file_name","size":100,"textual":"row1,row2 value1,value2"},"name":"custom_enrichment_name"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"customEnrichment": {
"description": "<string>",
"fileName": "<string>",
"fileSize": 123,
"id": 123,
"isQueryOnly": true,
"name": "<string>",
"version": 123
},
"message": "Custom enrichment created successfully"
}
API key authentication
Was this page helpful?