Search Device Rule Results
POST {{cb_url}}/compliance/assessment/api/v1/orgs/{{cb_org_key}}/benchmark_sets/{{cb_benchmark_set_id}}/compliance/rules/{{cb_benchmark_set_rule_id}}/devices/_search
Search and return rule compliance results for Devices that match the search criteria within the specified Benchmark Set and Rule.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
workloads.vcenter.vm | READ |
Request Schema
{
"query": "<string>",
"rows": "<integer>",
"start": "<integer>",
"criteria": {
"<fieldname>": [
"<value>"
]
},
"sort": [
{
"field": "<string>",
"order": "<string>"
}
]
}
Request Body
{"query"=>"DEMO", "rows"=>"1", "start"=>"0", "sort"=>[{"field"=>"device_name", "order"=>"ASC"}]}
RESPONSES
status: OK
{"num_found":13,"results":[{"device_id":37954691,"device_name":"DEMO\\A202323163424","os_version":"Windows Server 2022 x64","compliance_result":true}]}