Skip to main content

GQL Device linked to Collector

  • February 27, 2025
  • 1 reply
  • 0 views

Forum|alt.badge.img

Hi,

For trouble shoot, I want to have an overview of the devices linked to the collector where the (SNMP) device is allocated to.

Pulling all the devices with attributes are working fine, also the related collector group and his group members. I am not able to find a solution to get device-to-collector.

Is someone having a example GQL? Any suggestions?

Thanks in advance.

Alfred

 

1 reply

  • Community Manager
  • March 18, 2025

Hey @Alfred_Heijkoop, here’s how to get all the devices for a specific collector group: 

query devices {
  devices(search: {collectorGroup: {has: {name: {eq: "myCollectorGroupName"}}}}) {
    edges {
      node {
        id
        name
        collectorGroup {
          id
          name
        }
      }
    }
  }
}