Get Reports v3.0

API version3.0
Last Update01/22/2019
AuthenticationYES
Response FormatCSV | ZIP | JSON
HTTP MethodGET
Rate limitedYES
Requests per rate limit10/min
Change History01/22/2019: add one more export type (type parameter in request), agent_log

Use to download reports such as OS patches summary, devices which missing a specific OS patch, missing OS patches on a specific device, MetaAccess 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 MetaAccess agent log which was requested in Device Action.
command_idstringURLOptionalMust be passed in if the report type is agent_log Command ID which archived from Device Action when you request to retrieve MetaAccess 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

This is only applied for agent_log type Status of a command. Value can be

  • Queue: 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
  • Failed: the device responded but the device couldn't complete the command
messagestringThis is only applied for agent_log type Details of the status
errorstringThis is only applied for agent_log type Indicate what is wrong
error_descriptionstringThis is only applied for agent_log type Details of the 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 MetaAccess agent logs
  • Command ID is valid but MetaAccess agent log is not available

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

History

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