Where to find a Device's ID

How can I uniquely identity each device on the platform ? Is there a unique ID that can be used to make a get request via the API ?

hi @Cedric

Please find the guide given below which helps you to control your devices efficiently.

Thank you

Hi @nivedithab
Thanks for providing some guidance. The documentation attached relates to a device Class ID rather than a Device ID. To view the device id you simply need to go under device management and select the device under the device list, the summary link contains the device id. if you open it in a new tab you should be able to view it in the URL.

You can send the following POST request to the URL using your API token in the Authrorization Header.
Note that API has a limitation of replying with only 200 workstations information.

https://api-gw.cmdm.comodo.com/api/v2/itsm/devices/search

{
  "$S": {
    "pagination": {
      "limit": 200,
      "offset":0     
    },

    "attributes": {
      "os_type": { 
       "value": [
        1,
        2,
        3,
        4,
        5
        ],
       "type": "in:enum"
       },        

        
      "online_status": {
        "value": [
          1,
          2
        ],
        "type": "in:enum"
      }
        
    },   

    "sort": {
      "attributeName": "asc"
    }
  }

You can then parse the JSON and get the id