This example describes how to export system scan reports from the latest scans as files in XML format.
-
- Get a list of scan groups within the current organization:
curl -X GET https://api.radar.f-secure.com/api/integration/scangroups/simple
-H ‘Content-Type: application/json’
-H ‘ApiAccessKey: {ApiAccessKey}’
-H ‘ApiSecretKey: {ApiSecretKey}’
-
- Extract the unique Id identifier from each of the returned scan groups.
- Get a list of system scans assigned to each scan group:
Use the previously extracted scan group Id as a parameter.
curl -X GET https://api.radar.f-secure.com/api/integration/scangroups\
/{scanGroupId}/systemscans
-H ‘Content-Type: application/json’
-H ‘ApiAccessKey: {ApiAccessKey}’
-H ‘ApiSecretKey: {ApiSecretKey}’
-
- Extract the Id from each of the returned system scans.
- Get a list of findings:
Use the previously extracted system scan Id as a parameter.
curl -X GET https://api.radar.f-secure.com/api/integration/systemscans\
/{scanId}/reports/latest
-H ‘Content-Type: application/json’
-H ‘ApiAccessKey: {ApiAccessKey}’
-H ‘ApiSecretKey: {ApiSecretKey}’
Note: You can also export the system scan report in docx format:
curl -X GET https://api.radar.f-secure.com/api/integration/systemscans\
/{scanId}/reports/latest?fileType=docx
-H ‘Content-Type: application/json’
-H ‘ApiAccessKey: {ApiAccessKey}’
-H ‘ApiSecretKey: {ApiSecretKey}’