const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/enrichments:atomicOverwrite';
let options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"enrichmentType":{"geoIp":{"withAsn":true},"suspiciousIp":{},"aws":{"resourceType":"ec2"},"customEnrichment":{"id":1}},"enrichmentFields":[{"fieldName":"string","enrichedFieldName":"string","selectedColumns":["string"]}]}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"enrichments": [
{
"id": 1,
"fieldName": 1,
"enrichmentType": {
"geoIp": {
"withAsn": true
},
"suspiciousIp": {},
"aws": {
"resourceType": "ec2"
},
"customEnrichment": {
"id": 1
}
},
"enrichedFieldName": 1,
"selectedColumns": [
"city",
"population"
]
}
]
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/enrichments:atomicOverwrite';
let options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"enrichmentType":{"geoIp":{"withAsn":true},"suspiciousIp":{},"aws":{"resourceType":"ec2"},"customEnrichment":{"id":1}},"enrichmentFields":[{"fieldName":"string","enrichedFieldName":"string","selectedColumns":["string"]}]}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"enrichments": [
{
"id": 1,
"fieldName": 1,
"enrichmentType": {
"geoIp": {
"withAsn": true
},
"suspiciousIp": {},
"aws": {
"resourceType": "ec2"
},
"customEnrichment": {
"id": 1
}
},
"enrichedFieldName": 1,
"selectedColumns": [
"city",
"population"
]
}
]
}
API key authentication
A successful response.
The response is of type object
.
Was this page helpful?