Search Rules in a Benchmark Set
POST {{cb_url}}/compliance/assessment/api/v1/orgs/{{cb_org_key}}/benchmark_sets/{{cb_benchmark_set_id}}/rules/_search
Search for rules within a Benchmark Set.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
complianceAssessment.data | READ |
Request Body
{
"query": "<string>",
"rows": "<integer>",
"start": "<integer>",
"criteria": {
"<fieldname>": [
"<value>"
]},
"sort": {
"field": "<string>",
"order": "<string>"
}
}
Request Body
{"query"=>"windows", "rows"=>1, "start"=>0, "sort"=>[{"field"=>"section_name", "order"=>"DESC"}]}
RESPONSES
status: OK
{"num_found":57,"results":[{"id":"75D1C537-FF92-4B46-9875-9549AA088BC9","rule_name":"(L1) Ensure 'Configure Automatic Updates' is set to 'Enabled'","enabled":true,"section_id":"D5F265D0-6087-61C8-D6F9-9AE0B7AFB06B","section_name":"Windows Update"}]}