Returns a single rule by ID, including its matcher.
The ID of the rule to retrieve. This property is required.
A successful response.
A rule sets an alert's verdict, severity or both when the alert matches its conditions.
The unique identifier of the rule.
The rule name, unique among the workspace's rules and guidance.
An optional description of the rule.
Whether the rule is active. A disabled rule is not evaluated. Always returned, including when false.
The rule's position in evaluation order within its evaluation point, 1 for first. Positions run from 1 to the number of rules without gaps, counting enabled and disabled rules.
When in triage the rule is evaluated: "after_verdict", once Auto Triage has reached its verdict.
The conditions an alert must meet: the rule matches when any group matches, and a group matches when all its conditions hold. Fields and values are spelled as on the public alert, and the allowed ones are listed by Retrieve rule schemas. To scope a rule to a source or category, put that condition in every group. A matcher holds at most 200 conditions in all, those inside collection conditions included.
The groups, any of which matching makes the rule match. Minimum 1, maximum 64.
A group of conditions that must all hold.
The conditions, all of which must hold. At least one.
One condition, of one of two kinds. A field condition sets field, operator and values to test a field of the alert. A collection condition sets collection and match to test the items of one of the alert's lists, such as its observables, and holds when an item matches.
The alert field the condition tests, as a path such as "alert.source.integration_type_id". Set for a field condition.
How the field is compared with the values. Set for a field condition.
- "in", "not_in": the field is one of the values, or none of them.
- "contains_any", "contains_none": the field contains at least one of the values as a substring, or none of them.
- "matches_regex": the field matches the one value given, a regular expression in RE2 syntax.
Which operators a field takes is listed in its "x-operators" list in the rule schemas:
- A field with a fixed set of values, such as "alert.verdict.triage_severity" or an observable's "type", a list of such values, such as "alert.categories", and an identifier compared exactly, such as "alert.source.integration_type_id": "in", "not_in".
- Free text, such as an observable's "value", and a list of free text: all five.
- A list of objects, such as "alert.observables": none; test its items with a collection condition.
On a list, the condition holds when some item meets it, or, for "not_in" and "contains_none", when no item does. "equals" and "not_equals" are refused; use "in" and "not_in", which match the same alerts.
The values the field is compared with, as strings: one for "matches_regex", one or more for the others. Each is a non-empty string; a field with a fixed set of values takes only those. At most 1,000 values, each at most 4,096 characters, and a regular expression at most 1,024 characters. Set for a field condition.
The alert list the condition looks through, as a path such as "alert.observables". Set for a collection condition.
The conditions an item of an alert's list must meet, in the same shape as the matcher: the item matches when any group matches, and a group matches when all its conditions hold. For conditions that must all hold on the same item, such as an observable's type and value, use one group.
The groups, any of which matching makes the item match. At least one.
A group of conditions on an item, all of which must hold.
The conditions, all of which must hold. At least one.
A condition on a field of an item, such as an observable's "type" or "value".
The item field the condition tests, relative to the item, such as "type".
How the field is compared with the values. The operators, and which a field takes by its type, are as in a rule condition.
The values the field is compared with, as strings, as in a rule condition.
What a rule does to an alert it matches: an outcome type, and a config whose shape the type defines. Retrieve rule schemas lists the allowed types and the settings each one takes. Currently the only type is "override_triage_result", which sets the alert's verdict, its severity, or both.
The outcome type, such as "override_triage_result".
The outcome's settings, as a JSON object whose fields and values the type's config schema defines. For "override_triage_result": {"verdict": "False Positive", "severity": "Low"}, with at least one of the two.
The number of alerts created in the last 30 days that this rule matched. Rules are checked in priority order and checking stops at the first match, so an alert counts only for the first rule that matched it. Approximate: the count is refreshed periodically. Always returned, including when 0.
The timestamp when the rule was created.
The entity that performed the action.
The actor kind. Identifies which actor case is populated. One of:
USER, WORKFLOW, INTEGRATION, SERVICE_API_KEY, SOCRATES, TRIAGE, AGENT, BUILDER.
User identity information.
The actor's email address.
The user's full name.
Workflow execution details.
The workflow ID.
The workflow execution ID.
The workflow name.
Integration configuration.
The integration ID.
The integration type identifier.
Service account API token information.
The service account API token name.
The service account API token client ID.
Original actor information.
Triage system action.
Agent execution details.
The agent ID.
The agent execution ID.
Workflow Builder acting on behalf of a user.
The timestamp when the rule was last updated.
The entity that performed the action.
The actor kind. Identifies which actor case is populated. One of:
USER, WORKFLOW, INTEGRATION, SERVICE_API_KEY, SOCRATES, TRIAGE, AGENT, BUILDER.
User identity information.
The actor's email address.
The user's full name.
Workflow execution details.
The workflow ID.
The workflow execution ID.
The workflow name.
Integration configuration.
The integration ID.
The integration type identifier.
Service account API token information.
The service account API token name.
The service account API token client ID.
Original actor information.
Triage system action.
Agent execution details.
The agent ID.
The agent execution ID.
Workflow Builder acting on behalf of a user.
Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.
You don't have permission to access this resource.