04-05-2024 07:41 AM
Hi, I have the following query, for which i would like to retrieve all the information below for a specific site-id. The whole graphql query structure is a bit confusing. Where in this query would i specify the siteId:424 to return information only for this specific site?
query {
network {
devices {
ip
sysName
deviceData{
vendor
serialNumber
family
subFamily
status
}
siteData{
siteName
}
}
}
}
04-08-2024 12:04 AM
you can use siteId, but is not much use behind, because is the DB table reference. Is better to use the SitePath. This gives you the unique pass where the device is located.
you can call in example
{
network {
devices {
ip
sysName
sitePath
status
deviceData {
vendor
serialNumber
family
subFamily
}
}
}
}
you get the site path and you can look for all the devices in this site only.
{
network {
devicesBySiteLocation(location: "/World/Local") {
ip
sysName
deviceDisplayFamily
}
}
}
04-23-2024 03:38 AM
I Noticed that some of the newer devices only returns 'Extreme' when queried for deviceDisplayType, while all the older switches return their model name. Is there any other field i should query to get the model for these newer switches?