Export Rule Compliance Summaries
POST {{cb_url}}/compliance/assessment/api/v1/orgs/{{cb_org_key}}/benchmark_sets/{{cb_benchmark_set_id}}/compliance/rules/_export
The export endpoint is asynchronous; firstly use the endpoint defined here to create a job with required search criteria to limit the results, then use the Download Job Output in the Jobs Service to get the results. The Download Job API requires the permission jobs.status - READ.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
complianceAssessment.data | READ |
Request Schema
{
"query": "<string>",
"rows": "<integer>",
"start": "<integer>",
"criteria": {
"<fieldname>": [
"<value>"
]
},
"sort": [
{
"field": "<string>",
"order": "<string>"
}
],
"format": "<string>"
}
Request Body
{"query"=>"<string>", "rows"=>"<integer>", "start"=>"<integer>", "criteria"=>{"<fieldname>"=>["<value>"]}, "sort"=>[{"field"=>"<string>", "order"=>"<string>"}], "format"=>"<string>"}
RESPONSES
status: OK
[{"Non Compliant Assets Ids":["46250900"],"Compliant Assets Ids":[],"Benchmark Set Id":"fa6e421c-e75a-483c-bea3-842fb1b52705","Non Compliant Assets":1,"Benchmark Set Name":"CIS Compliance - Microsoft Windows Server","Recommendation Name":"(L1) Ensure 'Windows Firewall: Private: Firewall state' is set to 'On (recommended)'","Compliant Assets":0,"Remediation":"To establish the recommended configuration via GP, set the following UI path to On (recommended): Computer Configuration\\Policies\\Windows Settings\\Security Settings\\Windows Firewall with Advanced Security\\Windows Firewall with Advanced Security\\Windows Firewall Properties\\Private Profile\\Firewall state ","Section Name":"Private Profile","Recommendation Id":"00869D86-6E61-4D7D-A0A3-6F5CDE2E5753"}]