post
/public_api/v1/xpanse_remediation_rules/rules/
Get the list of the remediation path rules associated with an attack surface rule.
Required License: Cortex Xpanse Expander + Active Response Module Add-On
Request headers
authorization
String
required
api-key
Example:
{{api_key}}
x-xdr-auth-id
String
required
api-key-id
Example:
{{api_key_id}}
Body parameters
required
Free-Form objectFree-Form object
request_dataObject
A dictionary containing the API request fields.
filtersArray
Array of filter fields. Each JSON object must contain the following: - field - operator - value
[Free-Form object]
fieldString (Enum)
String that identifies the attack surface rule field for filtering.
Allowed values:"attack_surface_rule_id"
operatorString (Enum)
Identifies the comparison operator to use for this filter. Valid keywords are
- eq
- neq
Allowed values:"neq""eq"
valueString
Value that the filter must match. Value must be the following:
- {attack_surface_rule_id}
: String of the attack surface rule to filter on
sortObject
Identifies the sort order for the result set. By default, the sort is defined as created_at
, DESC
.
search_fromInteger
search_toInteger
REQUEST BODY
{
"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
}
}
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
}
}'
Responses