Export Compliance Information for Devices

POST {{cb_url}}/compliance/assessment/api/v1/orgs/{{cb_org_key}}/benchmark_sets/{{cb_benchmark_set_id}}/compliance/devices/_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"=>"windows", "rows"=>"1", "start"=>"0", "sort"=>[{"field"=>"device_name", "order"=>"ASC"}], "format"=>"CSV"}