How to generate a list of Device names and IDs

The following command (uses curl and jq) can be used on any workgroup that you have access to to get a list of device names and their IDs
curl -s -H "Authorization: Bearer $TOKEN"${WORKGROUPID} | jq -r '.[] | "\(.name): \(.id)"'
  • TOKEN = your API or User token
  • WORKGROUPID = is the ID of the target Workgroup (Admin -> Workgroup)
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Article is closed for comments.