v1
latestOpenAPI 3.1.02026-08-06330343826.1 KBReport
Reports
Configures a new report for generation. Report types are controlled through either or both a format and template. Non-templatized (export) report formats do not require a template and have their output format preset. Templatized (document and file) report formats support a report template that governs the content of the output and the output format can be chosen from a list of supported formats.
post/api/3/reports
Request body
Example request
{
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}
},
"format": "pdf",
"frequency": {
"repeat": {
"every": "date-of-month",
"interval": 1
},
"start": "2018-03-01T04:31:56Z",
"type": "schedule"
},
"id": 17,
"language": "en-US",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "Monthly Corporate Site Summary",
"organization": "Acme, Inc.",
"owner": 1,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"interval": 7
},
"remediation": {
"solutions": 25
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"sites": "total",
"tagMembership": "historical",
"tags": "total"
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
7
],
"version": "2.3.0"
}Response
OK