Get Reports

API version3.1
Last Update08/02/2019
AuthenticationYES
Response FormatCSV | ZIP | JSON
HTTP MethodGET
Rate limitedYES
Requests per rate limit10/min
Change History08/02/2019: add one more export type (type parameter in request), scan_threats_log

Use to download reports such as OS patches summary, devices which missing a specific OS patch, missing OS patches on a specific device, MetaDefender IT-OT Access agent log

API URL

Copy

Request Parameters

KeyDatatypeParameter TypeRequiredDescriptionDefault
access_tokenstringURLYesaccess token which archived from OAuth authentication step
typestringURLYes

Specify what report you want to download. Values can be:

  • os_patch_summary: get OS Patches summary report
  • device_missing_os_patch: get devices which missing a specific OS Patch report
  • missing_os_patch: get missing OS Patches on a device
  • agent_log: download OPSWAT Agent logs which was requested in Device Action
  • scan_threats_log: download threat scanning log which was requested in Device Action
command_idstringURLOptionalMust be passed in if the report type is agent_log or scan_threat_log Command ID which archived from Device Action when you request to retrieve OPSWAT Agent logs
kbstringURLOptionalMust be passed in with if the report type is device_missing_os_patch KB Number of an OS patch you would like to download devices which are missing the OS patch.
idstringURLOptionalMust be passed in if the report type is missing_os_patch Device ID or D MAC address

Response HTTP Code

See APIs

Response Parameters

KeyDatatypeDescription
statusstring

*Only applied for agent_log, *_scan_threats_log type _ Command status. Value can be

  • Queued: the command is in queue, has not sent to a device yet
  • Pending: the command is sent to a device but the device has not responded yet
  • In Progress: the device responded that it will start scanning
  • Failed: the device responded that it couldn't upload log
messagestring*_This is applied for agent_log type or *_scan_threats_log type Detailed status
errorstring*_This is applied for agent_log type or *_scan_threats_log type Indicate what is wrong
error_descriptionstring*_This is applied for agent_log type or *_scan_threats_log type Detailed error

Example

GET OS Patches Summary Report

Request Example

Copy

Example Response: csv file

No.CategoryKB NumberTitleDescriptionProductVendorSeverityNo. of Devices
1critical_updateKB3115040Update for Microsoft Project 2013 32-Bit EditionMicrosoft has released an update for Microsoft Project 2013 32-Bit Edition.Office 2013Microsoft Corporationunknown1
2critical_updateKB3115039Update for Microsoft OneDrive for Business 32-Bit EditionMicrosoft has released an update for Microsoft OneDrive for Business 32-Bit Edition.Office 2013Microsoft Corporationunknown1

GET Devices Which Missing a Specific OS Patch Report

Request Example

Copy

Response Example: csv file

KB Number: KB3115040
Title: Update for Microsoft Project 2013 32-Bit Edition
No.Device IDDevice NameUsername
13AD89B1F7647455889897B5D2A63D15AWSEVN20bob

GET Missing OS Patches on Device

Request Example

Copy

Response Example: csv file

Last information updated: May 04, 2016 03:23:13 AM UTC
No.CategoryKB NumberTitleDescriptionProductVendorSeverity
1updateKB3013816Update for Windows 8.1 for x64-based SystemsInstall this update to resolve issues in WindowsWindows 8.1Microsoft Corporationunknown

GET Fetch Log Reports

Request Example

Copy

Response Example:

  • Successful

    • HTTP 200
    • Response: a zip file. It contains OPSWAT Agent's logs
  • Command ID is valid but agent log is not available

    • HTTP 202
    • Response: json
Copy
  • Command is invalid or doesn't exist
    • HTTP 404
    • Response: json
Copy

GET Scan Threats Reports

Request Example

Copy

Response Example:

  • Successful

    • HTTP 200
    • Response: a zip file. It contains OPSWAT Agent's threat scanning logs
  • Command ID is valid but scan threat log is not available

    • HTTP 202
    • Response: json
Copy
  • Command is invalid or doesn't exist
    • HTTP 404
    • Response: json
Copy

History

APIVersionURL
Get Reports3.0Get Reports v3.0
Get Reports2.0Get Reports v2.0
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard