Retrieving Devices

You can use the retrieveDevices call to retrieve all the devices belong to the logged-on user.

Sample URL

https://hostname:port/context/rest/v2/devices/retrieveDevices

Method

GET

Parameters

None.

Response

The call returns an array of JSON objects which represents the devices.

Example:

[{"id":"a6cd9ba8-a370-4376-b064-55c5ed0db009","osVersion":"Mac OS X","name":"Administrators-MacBook-Pro.local","serialNumber":" ","wipeStatus":"N","dateLastUsed":1380565013000,"type":"Mac","make":"Mac OS X"}, {"id":"b4b3f09a-01b1-4850-b4d9-33ad182bf858","osVersion":"Windows 7","name":"glind-W510","serialNumber":" ","wipeStatus":"N","dateLastUsed":1380566330000,"type":"Windows","make":"Windows 7"}]

Explanation of special response code:

HTTP Status Code Description
404 Not Found. No devices for this user