Resources and operations for managing and generating reports. Reports are broadly categorized into document, export, and file types. document reports use section-based report templates to control the output and can be generated in several formats. export reports are designed to output their contents into a specific file format. file reports are templatized reports that output based on the format of a template file. Reports can be configured to generate on a schedule and be distributed via email to specific recipients.
This document contains 13 endpoints under the Report tag.
Endpoint: GET /api/3/report_formats
Returns all available report formats. A report format indicates an output file format specification (e.g. PDF, XML, etc). Some printable formats may be templated, and others may not. The supported templates for each formated are provided.
Operation ID: getReportFormats
Description: OK
Schema: Resources«AvailableReportFormat»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
{
"format": "pdf",
"templates": [
"string"
]
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/report_templates
Returns all available report templates.
Operation ID: getReportTemplates
Description: OK
Schema: Resources«ReportTemplate»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
{
"builtin": true,
"description": "Provides comprehensive details about discovered assets, vulnerabilities, and users.",
"id": "audit-report",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "Audit Report",
"sections": [
"string"
],
"type": "document"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/report_templates/{id}
Returns the details of a report template. Report templates govern the contents generated within a report.
Operation ID: getReportTemplate
Name: id
Location: path
Type: string
Required: Yes
Description: The identifier of the report template;
Description: OK
Schema: ReportTemplate
Example JSON Response:
{
"builtin": true,
"description": "Provides comprehensive details about discovered assets, vulnerabilities, and users.",
"id": "audit-report",
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"name": "Audit Report",
"sections": [
"string"
],
"type": "document"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/reports
Returns all defined report configurations.
Operation ID: getReports
Name: page
Location: query
Type: integer
Required: No
Description: The index of the page (zero-based) to retrieve.
Name: size
Location: query
Type: integer
Required: No
Description: The number of records per page to retrieve.
Name: sort
Location: query
Type: array
Required: No
Description: The criteria to sort the records by, in the format: property[,ASC|DESC]. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters.
Description: OK
Schema: PageOf«Report»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"page": {
"number": 6,
"size": 10,
"totalPages": 13,
"totalResources": 123
},
"resources": [
{
"baseline": {},
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"additionalRecipients": [
"string"
],
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"excluded": [
"string"
],
"included": [
"string"
],
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
},
"severity": "",
"statuses": [
"vulnerable"
]
},
"format": "pdf",
"frequency": {
"nextRuntimes": [
"string"
],
"repeat": {
"dayOfWeek": "",
"every": "date-of-month",
"interval": 1,
"weekOfMonth": ""
},
"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,
"policies": [
42
],
"policy": 789,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"from": "",
"interval": 7,
"to": ""
},
"remediation": {
"solutions": 25,
"sort": ""
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"from": "P3M",
"sites": "average",
"tagMembership": "historical",
"tags": "average",
"to": ""
},
"scope": {
"assetGroups": [
42
],
"assets": [
42
],
"scan": 68,
"sites": [
42
],
"tags": [
42
]
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
42
],
"version": "2.3.0"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: POST /api/3/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.
Operation ID: createReport
Name: report
Location: body
Type: Report
Required: No
Description: The specification of a report configuration.
JSON Example:
{
"baseline": {},
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"additionalRecipients": [
"string"
],
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"excluded": [
"string"
],
"included": [
"string"
],
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
},
"severity": "",
"statuses": [
"vulnerable"
]
},
"format": "pdf",
"frequency": {
"nextRuntimes": [
"string"
],
"repeat": {
"dayOfWeek": "",
"every": "date-of-month",
"interval": 1,
"weekOfMonth": ""
},
"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,
"policies": [
42
],
"policy": 789,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"from": "",
"interval": 7,
"to": ""
},
"remediation": {
"solutions": 25,
"sort": ""
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"from": "P3M",
"sites": "average",
"tagMembership": "historical",
"tags": "average",
"to": ""
},
"scope": {
"assetGroups": [
42
],
"assets": [
42
],
"scan": 68,
"sites": [
42
],
"tags": [
42
]
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
42
],
"version": "2.3.0"
}Name: report
Location: body
Type: Report
Required: No
Description: The specification of a report configuration.
JSON Example:
{
"baseline": {},
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"additionalRecipients": [
"string"
],
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"excluded": [
"string"
],
"included": [
"string"
],
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
},
"severity": "",
"statuses": [
"vulnerable"
]
},
"format": "pdf",
"frequency": {
"nextRuntimes": [
"string"
],
"repeat": {
"dayOfWeek": "",
"every": "date-of-month",
"interval": 1,
"weekOfMonth": ""
},
"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,
"policies": [
42
],
"policy": 789,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"from": "",
"interval": 7,
"to": ""
},
"remediation": {
"solutions": 25,
"sort": ""
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"from": "P3M",
"sites": "average",
"tagMembership": "historical",
"tags": "average",
"to": ""
},
"scope": {
"assetGroups": [
42
],
"assets": [
42
],
"scan": 68,
"sites": [
42
],
"tags": [
42
]
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
42
],
"version": "2.3.0"
}Description: OK
Schema: CreatedReference«int,Link»
Example JSON Response:
{
"id": 1,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/reports/{id}
Returns the configuration details of a report.
Operation ID: getReport
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Description: OK
Schema: Report
Example JSON Response:
{
"baseline": {},
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"additionalRecipients": [
"string"
],
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"excluded": [
"string"
],
"included": [
"string"
],
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
},
"severity": "",
"statuses": [
"vulnerable"
]
},
"format": "pdf",
"frequency": {
"nextRuntimes": [
"string"
],
"repeat": {
"dayOfWeek": "",
"every": "date-of-month",
"interval": 1,
"weekOfMonth": ""
},
"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,
"policies": [
42
],
"policy": 789,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"from": "",
"interval": 7,
"to": ""
},
"remediation": {
"solutions": 25,
"sort": ""
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"from": "P3M",
"sites": "average",
"tagMembership": "historical",
"tags": "average",
"to": ""
},
"scope": {
"assetGroups": [
42
],
"assets": [
42
],
"scan": 68,
"sites": [
42
],
"tags": [
42
]
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
42
],
"version": "2.3.0"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: PUT /api/3/reports/{id}
Updates the configuration details of a report.
Operation ID: updateReport
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Name: report
Location: body
Type: Report
Required: No
Description: The specification of a report configuration.
JSON Example:
{
"baseline": {},
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"additionalRecipients": [
"string"
],
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"excluded": [
"string"
],
"included": [
"string"
],
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
},
"severity": "",
"statuses": [
"vulnerable"
]
},
"format": "pdf",
"frequency": {
"nextRuntimes": [
"string"
],
"repeat": {
"dayOfWeek": "",
"every": "date-of-month",
"interval": 1,
"weekOfMonth": ""
},
"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,
"policies": [
42
],
"policy": 789,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"from": "",
"interval": 7,
"to": ""
},
"remediation": {
"solutions": 25,
"sort": ""
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"from": "P3M",
"sites": "average",
"tagMembership": "historical",
"tags": "average",
"to": ""
},
"scope": {
"assetGroups": [
42
],
"assets": [
42
],
"scan": 68,
"sites": [
42
],
"tags": [
42
]
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
42
],
"version": "2.3.0"
}Name: report
Location: body
Type: Report
Required: No
Description: The specification of a report configuration.
JSON Example:
{
"baseline": {},
"bureau": "Bureau",
"component": "Component",
"email": {
"access": "zip",
"additional": "file",
"additionalRecipients": [
"string"
],
"assetAccess": true,
"owner": "file",
"smtp": {
"global": true,
"relay": "mail.acme.com",
"sender": "john_smith@acme.com"
}
},
"enclave": "Enclave",
"filters": {
"categories": {
"excluded": [
"string"
],
"included": [
"string"
],
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
},
"severity": "",
"statuses": [
"vulnerable"
]
},
"format": "pdf",
"frequency": {
"nextRuntimes": [
"string"
],
"repeat": {
"dayOfWeek": "",
"every": "date-of-month",
"interval": 1,
"weekOfMonth": ""
},
"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,
"policies": [
42
],
"policy": 789,
"query": "SELECT * FROM dim_asset ORDER BY ip_address ASC",
"range": {
"every": "day",
"from": "",
"interval": 7,
"to": ""
},
"remediation": {
"solutions": 25,
"sort": ""
},
"riskTrend": {
"allAssets": {
"total": true,
"trend": "average-risk"
},
"assetGroupMembership": "historical",
"assetGroups": "total",
"assets": true,
"from": "P3M",
"sites": "average",
"tagMembership": "historical",
"tags": "average",
"to": ""
},
"scope": {
"assetGroups": [
42
],
"assets": [
42
],
"scan": 68,
"sites": [
42
],
"tags": [
42
]
},
"storage": {
"location": "monthly_reports/site/corporate",
"path": "$(install_dir)/nsc/reports/$(user)/monthly_reports/site/corporate"
},
"template": "executive-overview",
"timezone": "America/Los_Angeles",
"users": [
42
],
"version": "2.3.0"
}Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/reports/{id}
Deletes the configuration of a report.
Operation ID: deleteReport
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: POST /api/3/reports/{id}/generate
Generates a configured report and returns the instance identifier of the report.
Operation ID: generateReport
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Description: OK
Schema: ReferenceWithReportIDLink
Example JSON Response:
{
"id": 1,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Bad Request
Schema: BadRequestError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "400"
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/reports/{id}/history
Returns all historical details for generation of the report over time.
Operation ID: getReportInstances
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Description: OK
Schema: Resources«ReportInstance»
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"resources": [
{
"generated": "2018-06-01T18:56:03Z",
"id": 5,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"size": {
"bytes": 24789050,
"formatted": "23.6 MB"
},
"status": "complete",
"uri": "https://hostname:3780/reports/..."
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/reports/{id}/history/{instance}
Returns the details for a generation of the report.
Operation ID: getReportInstance
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Name: instance
Location: path
Type: string
Required: Yes
Description: The identifier of the report instance.
Description: OK
Schema: ReportInstance
Example JSON Response:
{
"generated": "2018-06-01T18:56:03Z",
"id": 5,
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"size": {
"bytes": 24789050,
"formatted": "23.6 MB"
},
"status": "complete",
"uri": "https://hostname:3780/reports/..."
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: DELETE /api/3/reports/{id}/history/{instance}
Deletes an instance of a generated report.
Operation ID: deleteReportInstance
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Name: instance
Location: path
Type: string
Required: Yes
Description: The identifier of the report instance.
Description: OK
Schema: Links
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
]
}Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/json;charset=UTF-8
Endpoint: GET /api/3/reports/{id}/history/{instance}/output
Returns the contents of a generated report. The report content is usually returned in a GZip compressed format.
Operation ID: downloadReport
Name: id
Location: path
Type: integer
Required: Yes
Description: The identifier of the report.
Name: instance
Location: path
Type: string
Required: Yes
Description: The identifier of the report instance.
Description: OK Example JSON Response:
"string"Description: Unauthorized
Schema: UnauthorizedError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "401"
}Description: Not Found
Schema: NotFoundError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "404"
}Description: Internal Server Error
Schema: InternalServerError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "500"
}Description: Service Unavailable
Schema: ServiceUnavailableError
Example JSON Response:
{
"links": [
{
"href": "https://hostname:3780/api/3/...",
"rel": "self"
}
],
"message": "An error has occurred.",
"status": "503"
}application/json
application/octet-streamapplication/json;charset=UTF-8