Get Devices v3.2

API version3.2
Last Update07/31/2018
AuthenticationYES
HTTP MethodPOST
Content Typeapplication/json
Rate limitedYES
Requests per rate limit10/min
Response FormatJSON
Changes

Changes compare with v3.1

  • Added filter criteria to query devices which install specific applications or have specific CVEs
  • Added filter criteria to query devices which have specific CVE severity

Use to retrieve devices with certain criteria.

API URL

Copy

Request Parameters

KeyDatatypeParameter TypeRequiredDescriptionDefault
access_tokenstringURLYesaccess token which archived from OAuth authentication step
filterobjectBodyOptionalSpecify filter criteria
filter.product_idsarray<int>BodyOptionalSpecify applications which devices install
filter.cve_idsarray<string>BodyOptionalSpecify cves which devices have
filter.device_typearray<string>BodyOptionalSpecify type of device. Values can be "desktop","laptop","phone","tablet","server","vm"
filter.categoryarray<string>BodyOptionalSpecify category which device has issues. Values can be "antiphishing", "antivirus", "backupclient", "hard_disk_encryption", "firewall", "patch_management", "instant_messegener", "cleaner_optimizer", "developer_tool", "cloud_storage", "publicfilesharing", "remote_control", "recording_web_meeting", "uninstaller", "toolbars", "media_player", "vpn_client", "unclassified_pua", "system", "hard_drive", "osupdate", "systemsecurity", "threat_antivirus", "threat_metascan", "threat_ip"
filter.severityarray<string>BodyOptionalSpecific issue severity which devices have Values can be: "critical", "warning", "no_issues"
filter.osarray<string>BodyOptionalSpecify OS type. Values can be: "windows","mac", "linux", "ios", "android"
filter.device_statusarray<string>BodyOptionalSpecify device status Values can be: "compliant", "non_compliant", "exempted", "out_of_license_usage", "unknown", "ignored", "installed", "pending", "quarantined"
filter.agent_statusarray<string>BodyOptionalSpecify agent status Values can be: "connected", "disconnected", "unseen", "out_of_date"
filter.agent_typearray<string>BodyOptionalSpecify agent type Values can be: "managed", "dc"
filter.group_idarray<string>BodyOptionalSpecify group id which a device is assigned to Values can be:
filter.cve_severityarray<string>BodyOptionalSpecific cve severity which devices have Values can be: "critical", "important", "moderate", "low", "unknown"
sortobjectBodyOptionalSpecify how to sort devices in result-set By default: sort devices by status in DESC order: quarantined, non-compliant, exempted, compliant, pending, out_of_license_usage, unknown, ignored
sort.orderstringBodyOptional

Specify sort order. Values can be:

  • asc: sort devices in ascending order.
  • desc: sort devices in descending order.
DESC
sort.fieldstringBodyOptionalSpecify which field will be sorted by Values can be: status, ip, nickname, user_name, os, last_seen, issues, group_policystatus
searchstringBodyOptionalkeyword to search devices.
limitintBodyOptionalSpecify maximum number of devices will be returned in the response. The value should be in [1,50].1
pageintBodyOptionalSpecify page number which devices will be returned in. If the requested page exceeds the number of pages of devices, error code will be 413. It means that the requested page number is too large, no devices will be returned in this case.1
verboseintBodyOptional

Specify what information you want to see in response

  • 0: no issue details in the response
  • 1: device issue details are returned in the response (has not supported yet)
0

Notes:

  • criteria in a same parameter will be combined with OR operator
  • criteria in different parameter will be combined with AND operator

Response HTTP Code

See APIs

Response Parameters

KeyDataTypeDescription
device_idstringHWID of a device
severitystringIssue severity of the device Values can be: "critical", "warning", "no_issues"
statusstringdevice status Values can be: "compliant", "non_compliant", "exempted", "out_of_license_usage", "unknown", "ignored", "installed", "pending", "quarantined"
device_namestringdevice name
nicknamestringdevice nickname (editable on the cloud console)
device_typestringdevice type Values can be "desktop","laptop","phone","tablet","server","vm"
last_seenstringThe last timestamp in GMT format when MetaAccess reports its data to Cloud
last_rebootstringThe last timestamp in GMT format when device reboots
agent_versionstringagent version
remediation_linkstringURL of remediation page for the given device
group_namestringGroup name which a device is assigned to
issueobjectSummary of issues a device has
issue.total_issueintnumber of issues a device has
issue.total_criticalintnumber of critical issues a device has
issue.total_warningintnumber of warning issues a device has
geo_infoobjectLocation details of the device where the device was in the last report
geo_info.countrystringcountry of the device where the device was in the last report
network_infoarray<object>Network adapter information block
network_info.macstringMAC address of a network adapter
network_info.ipv4stringIPV4 address of a network adapter
os_infoarray<object>Operation system block
os_info.familystringOS family
os_info.namestringOS name
os_info.vendorstringOS vendor
os_info.versionstringOS version
os_info.typestringOS type. Values can be: "windows","mac", "linux", "ios", "android"
cvesobjectSummary of CVEs a device has
cves.totalintTotal number of CVEs in device
link_userobjectLinked user details
link_user.usernamestringUsername
link_user.groupstringgroup which the user is associated to
user_infoobjectUser information block
user_info.usernamestringCurrently logged in username
user_info.domainstringCurrently logged in user domain

Example

Example Request

Description: retrieve 20 first Windows devices which has antivirus issues or encryption issues and sort devices in ASC order by number of issues

Copy

Example Response

Copy

History

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard