`GET /v1/orgs/{org}/compliance/export`.
const url = 'https://api.updawg.net/v1/orgs/example/compliance/export?dataset=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.updawg.net/v1/orgs/example/compliance/export?dataset=example'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Query Parameters
Section titled “Query Parameters”hosts: every host’s standing now, one row each. resolutions: every exposure that ended in the period, with its latency.
Start of the period, for resolutions (RFC 3339). Default: 90 days before until.
End of the period, exclusive. Default: now.
Only the hosts this group (grp_…) resolves to now.
Responses
Section titled “Responses”A CSV download.
An unknown or repeated parameter, a dataset other than hosts or resolutions, a bad period or group, or more resolutions than one export holds — narrow the period.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role. Or the plan does not include compliance reports (Business): plan-required.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}