Rules
REST API operations for rules
Last updated
Was this helpful?
REST API operations for rules
Last updated
Was this helpful?
The /rules
REST API operations are in open beta starting with Panther version 1.98, and are available to all customers. Please share any bug reports and feature requests with your Panther support team.
Use these API operations to interact with rules in Panther.
The rules API entity is only applicable to Python rules. To interact with rules created as Simple/YAML rules, see Simple Rules.
To call the API, see the How to use the Panther REST API instructions—including directions for how to invoke it directly from this documentation page.
For GET
operations, your API token must have the View Rules
permission.
For POST
, PUT
, and DELETE
operations, your API token must have the Manage Rules
permission.
/rules
set this field to false to exclude running tests prior to saving
set this field to true if you want to run tests without saving
The python body of the rule
The amount of time in minutes for grouping alerts
The description of the rule
The display name of the rule
Determines whether or not the rule is active
The id of the rule
The filter for the rule represented in YAML
Determines if the rule is managed by panther
How to handle the generated alert
the number of events that must match before an alert is triggered
INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
log types
A list of fields in the event to create top 5 summaries for
The tags for the rule
Unit tests for the Rule. Best practice is to include a positive and negative case
reports
put creates or updates a rule
/rules/{id}
the id of the rule
set this field to false to exclude running tests prior to saving
set this field to true if you want to run tests without saving
The python body of the rule
The amount of time in minutes for grouping alerts
The description of the rule
The display name of the rule
Determines whether or not the rule is active
The id of the rule
The filter for the rule represented in YAML
Determines if the rule is managed by panther
How to handle the generated alert
the number of events that must match before an alert is triggered
INFO
, LOW
, MEDIUM
, HIGH
, CRITICAL
log types
A list of fields in the event to create top 5 summaries for
The tags for the rule
Unit tests for the Rule. Best practice is to include a positive and negative case
reports