Skip to main content
Answer

Device group members via E-mail

  • July 5, 2023
  • 1 reply
  • 44 views

Hello!
Is there a way to periodically send a list of the members of a device group via e-mail? I’m using a QApp that puts non-compliant devices in a device group.
Thank you

Best answer by Carsten.Schmidt

Hi @laurd 

I am not aware that NB is capable of doing that internally, maybe there is. But you can use the “Get devices of device group API” to do that. Code examples in Python and cURL are provided here: https://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Device%20Group%20Management/Get%20Devices%20of%20Group.md

You could crontab a Python script to do that.

1 reply

Forum|alt.badge.img+5

Hi @laurd 

I am not aware that NB is capable of doing that internally, maybe there is. But you can use the “Get devices of device group API” to do that. Code examples in Python and cURL are provided here: https://github.com/NetBrainAPI/NetBrain-REST-API-R11/blob/main/REST%20APIs%20Documentation/Device%20Group%20Management/Get%20Devices%20of%20Group.md

You could crontab a Python script to do that.