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.dataREAD

Request Body

{
   "query": "<string>",
   "rows": "<integer>",
   "start": "<integer>",
   "criteria": {
       "<fieldname>": [
           "<value>"
       ]},
     "sort": {
         "field": "<string>",
         "order": "<string>"
     }
 }

See Documentation

Request Body

{"query"=>"windows", "rows"=>1, "start"=>0, "sort"=>[{"field"=>"section_name", "order"=>"DESC"}]}

RESPONSES

status: OK

{&quot;num_found&quot;:57,&quot;results&quot;:[{&quot;id&quot;:&quot;75D1C537-FF92-4B46-9875-9549AA088BC9&quot;,&quot;rule_name&quot;:&quot;(L1) Ensure &#39;Configure Automatic Updates&#39; is set to &#39;Enabled&#39;&quot;,&quot;enabled&quot;:true,&quot;section_id&quot;:&quot;D5F265D0-6087-61C8-D6F9-9AE0B7AFB06B&quot;,&quot;section_name&quot;:&quot;Windows Update&quot;}]}