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