Skip to content

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 /mapping

Needs read:rules.

Get all mapping rules

Responses

  • 200 Successful Response: array of MappingRuleDtoOut

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

  • 200 Successful Response: MappingRule

GET /mapping/{rule_id}

Needs read:rules.

Get a mapping rule by id

Path parameters

Name Type Required Description
rule_id integer yes

Responses

  • 200 Successful Response: MappingRuleDtoOut

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

  • 200 Successful Response: MappingRuleDtoOut

DELETE /mapping/{rule_id}

Needs write:rules.

Delete a mapping rule

Path parameters

Name Type Required Description
rule_id integer yes

Responses

  • 200 Successful Response: object

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

  • 200 Successful Response: EnrichmentEventPaginatedResultsDto

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

  • 200 Successful Response: EnrichmentEventWithLogs

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

  • 200 Mapping rule executed successfully: object
  • 400 Mapping rule failed to execute
  • 403 User does not have permission to execute mapping rule
  • 404 Mapping rule or alert not found

GET /extraction

Needs read:extraction.

Get all extraction rules

Responses

  • 200 Successful Response: array of ExtractionRuleDtoOut

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

  • 200 Successful Response: ExtractionRuleDtoOut

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

  • 200 Successful Response: ExtractionRuleDtoOut

DELETE /extraction/{rule_id}

Needs write:extraction.

Delete an extraction rule

Path parameters

Name Type Required Description
rule_id integer yes

Responses

  • 200 Successful Response: object

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

  • 200 Extraction rule executed successfully: object
  • 400 Extraction rule failed to execute
  • 403 User does not have permission to execute extraction rule
  • 404 Extraction rule or alert not found

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

  • 200 Successful Response: EnrichmentEventPaginatedResultsDto

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

  • 200 Successful Response: EnrichmentEventWithLogs