Get Devices v3.0

API version3.0
Last Update05/08/2018
AuthenticationYES
HTTP MethodPOST
Content Typeapplication/json
Rate limitedYES
Requests per rate limit10/min
Response FormatJSON
Changes

05/08/2018: Fixed a bug that the API returns all devices with any group_id

04/10/2018: fixed a bug that the API returns HTTP 200 in response instead of 413 when the page parameter exceeds a page limit

03/12/2018: fixed a bug when "limit" parameter is missed in the API input. It now returns 1 device per request instead of all devices

01/30/2018: removed "guest" value in the "agent_type" input parameter. API will return all monitored devices if agent_type is set to "guest"

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.device_typearray<string>BodyOptional

Specify type of device.

Values can be "desktop","laptop","phone","tablet","server","vm"

filter.categoryarray<string>BodyOptional

Specify category which device has issues.

Values can be "antiphishing", "antivirus", "backupclient", "hard_disk_encryption", "firewall", "patch_mangement_agent", "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>BodyOptional

Specific issue severity which device has

Values can be: "critical", "warning", "no_issues"

filter.osarray<string>BodyOptional

Specify OS type.

Values can be: "windows","mac", "linux", "ios", "android"

filter.device_statusarray<string>BodyOptional

Specify device status

Values can be: "compliant", "non_compliant", "exempted", "out_of_license_usage", "unknown", "ignored", "installed", "pending", "quarantined"

filter.agent_statusarray<string>BodyOptional

Specify agent status

Values can be: "connected", "disconnected", "unseen", "out_of_date"

filter.agent_typearray<string>BodyOptional

Specify agent type

Values can be: "managed", "dc"

filter.group_idarray<string>BodyOptional

Specify group id which a device is assigned to

Values can be:

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.fieldstringBodyOptional

Specify which field will be sorted by

Values can be: status, ip, nickname, user_name, os, last_seen, issues, group_policy

status
searchstringBodyOptionalkeyword to search devices.
limitintBodyOptionalSpecify maximum number of devices will be returned in the response. The value should be in [1,50]. If there are more devices than what the limit asks for, error code will be 406.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

HTTP CodeDescription
200Success
400Bad request
401Unauthorized. Your access_token is invalid or expired
404Not found
406Too many devices to return
413Requested page number exceeds limit
415Unsupported Media Type

Response Parameters

KeyDataTypeDescription
device_idstringHWID of a device
severitystring

Issue severity of the device

Values can be: "critical", "warning", "no_issues"

statusstring

device 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_typestring

device type

Values can be "desktop","laptop","phone","tablet","server","vm"

last_seenstringThe last timestamp in GMT format when MetaAccess reports its data to Cloud
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_issuesintnumber of issues a device has
issue.total_critical_issueintnumber of critical issues a device has
issue.total_warning_issueintnumber 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.typestring

OS type.

Values can be: "windows","mac", "linux", "ios", "android"

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