Search Benchmark Sets

POST {{cb_url}}/compliance/assessment/api/v1/orgs/{{cb_org_key}}/benchmark_sets/_search

Use the search query and criteria to return the required Benchmark SetRBAC Permissions Required

Permission (.notation name)Operation(s)
complianceAssessment.dataREAD

Request Schema

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

See Documentation

Request Body

{"query"=>"Test", "criteria"=>{"benchmark_set_id"=>["{{cb_benchmark_set_id}}"]}, "rows"=>20, "start"=>0, "sort"=>[{"field"=>"create_time", "order"=>"ASC"}]}

RESPONSES

status: OK

{&quot;num_found&quot;:&quot;1&quot;,&quot;results&quot;:[{&quot;id&quot;:&quot;251cc749-47d5-420d-9465-00a35a7024aa&quot;,&quot;name&quot;:&quot;Sample Benchmark Set&quot;,&quot;version&quot;:&quot;1.0.0.1&quot;,&quot;os_family&quot;:&quot;WINDOWS_SERVER&quot;,&quot;enabled&quot;:false,&quot;type&quot;:&quot;Custom&quot;,&quot;supported_os_info&quot;:[{&quot;os_metadata_id&quot;:&quot;1&quot;,&quot;os_type&quot;:&quot;WINDOWS&quot;,&quot;os_name&quot;:&quot;Windows Server 2012 x64&quot;,&quot;cis_version&quot;:&quot;2.3.0&quot;}],&quot;created_by&quot;:&quot;Jane Doe&quot;,&quot;updated_by&quot;:&quot;jane@company.com&quot;,&quot;create_time&quot;:&quot;2023-03-01T03:07:14.383765Z&quot;,&quot;update_time&quot;:&quot;2023-03-01T03:07:14.383765Z&quot;,&quot;sections&quot;:[{&quot;id&quot;:&quot;57428517-7E67-27DE-4EA7-699AFF2EDC61&quot;,&quot;name&quot;:&quot;Local Policies&quot;,&quot;description&quot;:&quot;This section contains recommendations for local policies.&quot;,&quot;sections&quot;:[{&quot;id&quot;:&quot;BE5B0852-96F7-3E07-391F-B1FA8CFF7F21&quot;,&quot;name&quot;:&quot;User Rights Assignment&quot;,&quot;description&quot;:&quot;This section contains recommendations for user rights assignments.&quot;,&quot;sections&quot;:[],&quot;rules&quot;:[{&quot;id&quot;:&quot;BCCAAACA-F0BE-4C0F-BE0A-A09FC1641EE2&quot;,&quot;rule_name&quot;:&quot;(L1) Ensure &#39;Create a pagefile&#39; is set to &#39;Administrators&#39;&quot;,&quot;enabled&quot;:false,&quot;section_id&quot;:&quot;BE5B0852-96F7-3E07-391F-B1FA8CFF7F21&quot;,&quot;section_name&quot;:&quot;User Rights Assignment&quot;}]}]}]}]}