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

Request Schema

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

See Documentation

Request Body

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

RESPONSES

status: OK

[{&quot;Non Compliant Assets Ids&quot;:[&quot;46250900&quot;],&quot;Compliant Assets Ids&quot;:[],&quot;Benchmark Set Id&quot;:&quot;fa6e421c-e75a-483c-bea3-842fb1b52705&quot;,&quot;Non Compliant Assets&quot;:1,&quot;Benchmark Set Name&quot;:&quot;CIS Compliance - Microsoft Windows Server&quot;,&quot;Recommendation Name&quot;:&quot;(L1) Ensure &#39;Windows Firewall: Private: Firewall state&#39; is set to &#39;On (recommended)&#39;&quot;,&quot;Compliant Assets&quot;:0,&quot;Remediation&quot;:&quot;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 &quot;,&quot;Section Name&quot;:&quot;Private Profile&quot;,&quot;Recommendation Id&quot;:&quot;00869D86-6E61-4D7D-A0A3-6F5CDE2E5753&quot;}]