Enrichment
Generated from openapi.json (API version 0.54.3). 15 endpoints. See the API overview for the base URL and how to sign requests.
Get Rules
Section titled “Get Rules”GET /mapping
Needs read:rules.
Get all mapping rules
Responses
200Successful Response: array ofMappingRuleDtoOut
Create Rule
Section titled “Create Rule”POST /mapping
Needs write:rules.
Create a new mapping rule
Body (application/json, required): MappingRuleDtoIn
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
description |
string or null | no | |
file_name |
string or null | no | |
priority |
integer | no | |
matchers |
array of array of string | yes | |
type |
one of csv, topology |
no | |
is_multi_level |
boolean | no | |
new_property_name |
string or null | no | |
prefix_to_remove |
string or null | no | |
rows |
array of object or null | no |
Responses
200Successful Response:MappingRule
Get Rule
Section titled “Get Rule”GET /mapping/{rule_id}
Needs read:rules.
Get a mapping rule by id
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Responses
200Successful Response:MappingRuleDtoOut
Update Rule
Section titled “Update Rule”PUT /mapping/{rule_id}
Needs write:rules.
Update an existing rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Body (application/json, required): MappingRuleUpdateDtoIn
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
description |
string or null | no | |
file_name |
string or null | no | |
priority |
integer | no | |
matchers |
array of array of string | yes | |
type |
one of csv, topology |
no | |
is_multi_level |
boolean | no | |
new_property_name |
string or null | no | |
prefix_to_remove |
string or null | no | |
rows |
array of object or null | no |
Responses
200Successful Response:MappingRuleDtoOut
Delete Rule
Section titled “Delete Rule”DELETE /mapping/{rule_id}
Needs write:rules.
Delete a mapping rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Responses
200Successful Response: object
Get Enrichment Events
Section titled “Get Enrichment Events”GET /mapping/{rule_id}/executions
Needs read:rules.
Get all executions for a rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | no | |
offset |
integer | no |
Responses
200Successful Response:EnrichmentEventPaginatedResultsDto
Get Enrichment Event Logs
Section titled “Get Enrichment Event Logs”GET /mapping/{rule_id}/executions/{enrichment_event_id}
Needs read:rules.
Get an execution for a rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes | |
enrichment_event_id |
string (uuid) | yes |
Responses
200Successful Response:EnrichmentEventWithLogs
Execute Rule
Section titled “Execute Rule”POST /mapping/{rule_id}/execute/{alert_id}
Needs write:rules.
Execute a mapping rule against an alert
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes | |
alert_id |
string (uuid) | yes |
Responses
200Mapping rule executed successfully: object400Mapping rule failed to execute403User does not have permission to execute mapping rule404Mapping rule or alert not found
Get Extraction Rules
Section titled “Get Extraction Rules”GET /extraction
Needs read:extraction.
Get all extraction rules
Responses
200Successful Response: array ofExtractionRuleDtoOut
Create Extraction Rule
Section titled “Create Extraction Rule”POST /extraction
Needs write:extraction.
Create a new extraction rule
Body (application/json, required): ExtractionRuleDtoBase
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
description |
string or null | no | |
priority |
integer | no | |
attribute |
string or null | no | |
condition |
string or null | no | |
disabled |
boolean | no | |
regex |
string | yes | |
pre |
boolean | no |
Responses
200Successful Response:ExtractionRuleDtoOut
Update Extraction Rule
Section titled “Update Extraction Rule”PUT /extraction/{rule_id}
Needs write:extraction.
Update an existing extraction rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Body (application/json, required): ExtractionRuleDtoBase
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | |
description |
string or null | no | |
priority |
integer | no | |
attribute |
string or null | no | |
condition |
string or null | no | |
disabled |
boolean | no | |
regex |
string | yes | |
pre |
boolean | no |
Responses
200Successful Response:ExtractionRuleDtoOut
Delete Extraction Rule
Section titled “Delete Extraction Rule”DELETE /extraction/{rule_id}
Needs write:extraction.
Delete an extraction rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Responses
200Successful Response: object
Execute Rule
Section titled “Execute Rule”POST /extraction/{rule_id}/execute/{alert_id}
Needs write:extraction.
Execute an extraction rule against an alert
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes | |
alert_id |
string (uuid) | yes |
Responses
200Extraction rule executed successfully: object400Extraction rule failed to execute403User does not have permission to execute extraction rule404Extraction rule or alert not found
Get Enrichment Events
Section titled “Get Enrichment Events”GET /extraction/{rule_id}/executions
Needs read:extraction.
Get all executions for a rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | no | |
offset |
integer | no |
Responses
200Successful Response:EnrichmentEventPaginatedResultsDto
Get Enrichment Event Logs
Section titled “Get Enrichment Event Logs”GET /extraction/{rule_id}/executions/{enrichment_event_id}
Needs read:extraction.
Get an execution for a rule
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
rule_id |
integer | yes | |
enrichment_event_id |
string (uuid) | yes |
Responses
200Successful Response:EnrichmentEventWithLogs