Skip to main content

GQL Device linked to Collector

  • February 27, 2025
  • 1 reply
  • 0 views

Alfred_Heijkoop
Forum|alt.badge.img+1

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

  • 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
        }
      }
    }
  }
}