Get Devices v2.2

API version2.2
Last Update01/30/2018
AuthenticationYES
Response FormatJSON
HTTP MethodGET
Rate limitedYES
Requests per rate limit10/min
ChangesSupport phone/tablet 01/30/2018: removed agent_type in input parameters. API will ignore agent_type parameter in the input

Use to get all devices on a given account

API URL

Copy

Request Parameters

KeyDatatypeParameter TypeRequiredDescriptionDefault
access_tokenstringURLYesaccess token which archived from OAuth authentication step
limitintURLOptionalSpecific 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
pageintURLOptionalSpecific 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
GroupBystringURLOptionalSpecific how to group devices. Values can be: none - No need to group devices hwid - HWID host - hostname issues - number of issuesnone
orderstringURLOptionalSort order. Values can be: des - descending. asc - ascending.des

Response HTTP Code

HTTP CodeDescription
200Success
401Unauthorized. Your access_token is invalid or expired
406Too many devices to return
413Requested page number exceeds limit

Response Parameters

KeyDataTypeDescription
hwidstringHardware ID of the device
agent_typestringAgent type that runs on the device. (optional)
remediation_linkstringURL of remediation page for the given device
statusint

Reports the compliance status of the endpoint. This status is based on the defined policy within MetaAccess. Status values are:

  • 0 – the endpoint is in compliance with MetaAccess account’s policies
  • 1 – the endpoint is not in compliance with MetaAccess account’s policies
  • 3 – the endpoint is still sending information to MetaAccess and not yet completed
hostnamestringHostname of the device
nicknamestringnickname for the device (admin editable)
agent_versionstringLocal resident MetaAccess agent version
last_seenstringThe last timestamp in GMT format when MetaAccess agent reports its data to Cloud
machine_typestringThe type of devices
countrystringRegion where the device IP geographically represents
activeint1 - device is connected to Cloud, 0 - disconnected
total_issueintNumber of issues were seen on the device
userstringUsername of a group
user_infoobjectUser information block
user_info.usernamestringCurrently logged in username
user_info.domainstringCurrently logged in user domain
os_infoobjectOperation system block
os_info.familystringOS family
os_info.namestringOS name
os_info.vendorstringOS vendor
os_info.versionstringOS version
os_info.service_pack_versionstringOS Service Pack Version
os_info.architecturestringOS architecture
os_info.os_languagestringOS language
os_info.user_password_setstringIf user password is set on OS, 1 is set, 0 is not set
network_infoarray<object>Network adapter information block
network_info.mac_addrstringMAC address of a network adapter
network_info.ipv4_addrstringIPV4 address of a network adapter
network_info.ipv6_addrstringIPV6 address of a network adapter
total_critical_issueintNumber of critical issues were seen on the device
critical_statusint

This critical status is based on the defined policy within MetaAccess. This status apply for the whole device. Critical status values are:

  • 0 – the endpoint doesn't have critical issues
  • 1 – the endpoint has critical issues
  • 2 – the endpoint is not found
exemptint

Exempt status of the endpoint device. Exempt values are:

  • 0 – Endpoint device is not exempted
  • 1 – Endpoint device is exempted

Example

Example Request

Copy

Example Response

Copy

Example Response for Mobile devices

Copy

History

VersionURL
v2.1Get Devices v2.1
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard