query{ accountSnapshot(id: XXX){ id sites(ids: []){ id status lastConnected connectedSince popName devices{ connected haRole interfaces{ metrics{ duration granularity bytesDownstream bytesUpstream bytesTotal lostDownstream lostDownstreamPcnt lostUpstream lostUpstreamPcnt packetsDownstream packetsUpstream jitterUpstream jitterDownstream packetsDiscardedDownstream packetsDiscardedUpstream rtt } id name physicalPort popID popName previousPopID previousPopName tunnelConnectionReason tunnelUptime tunnelRemoteIP tunnelRemoteIPInfo{ ip countryCode countryName city provider latitude longitude } type info{ id name upstreamBandwidth downstreamBandwidth } } lastConnected lastDuration connectedSince lastPopID lastPopName metrics{ duration granularity bytesDownstream bytesUpstream bytesTotal lostDownstream lostDownstreamPcnt lostUpstream lostUpstreamPcnt packetsDownstream packetsUpstream jitterUpstream jitterDownstream packetsDiscardedDownstream packetsDiscardedUpstream rtt } recentConnections{ duration interfaceName deviceName lastConnected popID popName remoteIP remoteIPInfo{ ip countryCode countryName city provider latitude longitude } } type uptimeSeconds socketInfo{ id serial isPrimary platform version versionUpdateTime } interfacesLinkState{ id up mediaIn linkSpeed duplex } } metrics{ duration granularity bytesDownstream bytesUpstream bytesTotal lostDownstream lostDownstreamPcnt lostUpstream lostUpstreamPcnt packetsDownstream packetsUpstream jitterUpstream jitterDownstream packetsDiscardedDownstream packetsDiscardedUpstream rtt } info{ name type description countryCode region countryName isHA connType creationTime sockets{ id serial isPrimary platform version versionUpdateTime } ipsec{ isPrimary catoIP remoteIP ikeVersion } } hostCount } users(ids: []){ id status name deviceName uptime lastConnected version versionNumber popID popName remoteIP remoteIPInfo{ ip countryCode countryName city provider latitude longitude } internalIP osType osVersion info{ name status email } recentConnections{ duration interfaceName deviceName lastConnected popID popName remoteIP remoteIPInfo{ ip countryCode countryName city provider latitude longitude } } } timestamp } }