post
/public_api/v1/xpanse_remediation_rules/rules/
Required License: Cortex Xpanse Expander + Active Response Module Add-On
Get the list of the remediation path rules associated with an attack surface rule.
CURL
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" -H "authorization: {{api_key}}" -H "x-xdr-auth-id: {{api_key_id}}" \
"https://api-}/public_api/v1/xpanse_remediation_rules/rules/" \
-d '{
"request_data" : {
"search_from" : 0,
"filters" : [ {
"field" : "attack_surface_rule_id",
"value" : "value",
"operator" : "neq"
}, {
"field" : "attack_surface_rule_id",
"value" : "value",
"operator" : "neq"
} ],
"sort" : "",
"search_to" : 0
}
}'
Request headers
authorization
required
String
api-key
Example:
{{api_key}}
x-xdr-auth-id
required
String
api-key-id
Example:
{{api_key_id}}
Request
Body
required
request_data
required
Object
A dictionary containing the API request fields.
filters
optional
Array
of objects
Array of filter fields. Each JSON object must contain the following:
- field
- operator
- value
field
required
String
(Enum)
String that identifies the attack surface rule field for filtering.
Allowed values:
attack_surface_rule_id
operator
required
String
(Enum)
Identifies the comparison operator to use for this filter. Valid keywords are
eq
neq
Allowed values:
neq
eq
value
required
String
Value that the filter must match. Value must be the following:
{attack_surface_rule_id}
: String of the attack surface rule to filter on
sort
optional
Object
Identifies the sort order for the result set. By default, the sort is defined as
created_at
, DESC
.
field
optional
String
(Enum)
Sorting based on the
created_at
field is supported.
Allowed values:
created_at
keyword
optional
String
(Enum)
Sort order can be one of the following values:
ASC
: ascending orderDESC
: descending order
Allowed values:
ASC
asc
DESC
desc
search_from
optional
Integer
search_to
optional
Integer
Responses