Adds a new enrichment policy.
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/EnrichmentPolicy
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
Existing enrichment policy id . Mandatory Field |
name |
Policy Name |
String |
Enrichment policy name . Mandatory Field |
description |
Description |
String |
Description for the enrichment policy. Optional Field |
specifications |
Specification |
[json] |
Mandatory Field. The following parameters must be provided to define enrichment policy specifications:
|
Request Example
{
"data": {
"name": "testPolicy",
"specifications": [
{
"rules": [
{
"category": "simple",
"source_key": "id",
"prefix": false,
"operation": "Equals",
"type": "string",
"event_key": "id"
}
],
"source": "test_odbc",
"criteria": [
{
"type": "KeyPresents",
"key": "id",
"value": ""
}
]
}
],
"description": "Enrichment Policy <i> description </i>."
}
}
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Edits an enrichment policy of given id.
PUT
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/EnrichmentPolicy/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
Existing enrichment policy id . Mandatory Field |
name |
Policy Name |
String |
Enrichment policy name . Mandatory Field |
description |
Description |
String |
Description for the enrichment policy. Optional Field |
specifications |
Specification |
[json] |
Mandatory Field. The following parameters must be provided to define enrichment policy specifications:
|
Request Example
{
"data": {
"name": "testPolicy",
"description": "Enrichment Policy Description.",
"specifications": [
{
"criteria": [
{
"type": "KeyPresents",
"key": "id",
"value": ""
}
],
"source": "test_odbc",
"rules": [
{
"source_key": "id",
"operation": "Equals",
"event_key": "id",
"category": "simple",
"type": "string",
"prefix": false
}
]
}
]
}
}
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Fetches an enrichment policy with given id.
GET
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/EnrichmentPolicy/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
Existing Enrichment Policy id . |
Success Response
{
"name": "testPolicy",
"specifications": [
{
"rules": [
{
"category": "simple",
"operation": "Equals",
"prefix": false,
"event_key": "id",
"source_key": "id"
}
],
"source": "test_odbc",
"criteria": [
{
"type": "KeyPresents",
"key": "id",
"value": ""
}
]
}
],
"id": "574fb123d8aaa4625bfe2d23",
"description": "Enrichment Policy <i> description </i>."
}
Lists all enrichment policies.
GET
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/EnrichmentPolicy
Success Response
[
{
"name": "testPolicy",
"specifications": [
{
"rules": [
{
"category": "simple",
"source_key": "id",
"prefix": false,
"operation": "Equals",
"type": "string",
"event_key": "id"
}
],
"source": "test_odbc",
"criteria": [
{
"type": "KeyPresents",
"key": "id",
"value": ""
}
]
}
],
"id": "574fb123d8aaa4625bfe2d23",
"description": "Enrichment Policy <i> description </i>."
}
]
Deletes an enrichment policy with given id.
DELETE
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/EnrichmentPolicy/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
Enrichment Policy id . Mandatory Field |
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
We are glad this guide helped.
Please don't include any personal information in your comment
Contact Support