Retrieves a NetworkPrefix by its graph object id: a host IP address with its subnet length, such as 192.168.1.23/24, on a specific Network. It links to the endpoint interfaces and devices that used the address, and to the ARP entries, open ports, and services observed on it. A network lists its prefixes through prefixes; find them across the organization with graphSearch on the NETWORK_PREFIX object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.
Response
Returns a NetworkPrefixPayload!
Arguments
| Name | Description |
|---|---|
id - ID!
|
The NetworkPrefix identifier. |
mockOptions - MockDataInput
|
Options for mock data generation. Options supported: none. |
Example
Query
query networkPrefix(
$id: ID!,
$mockOptions: MockDataInput
) {
networkPrefix(
id: $id,
mockOptions: $mockOptions
) {
node {
id
orgId
seen {
...SeenOnlineFragment
}
objectType
objectTypeLabel
displayName
firstSeen
lastSeen
createdAt
updatedAt
snapshotInfo {
...GraphObjectSnapshotInfoFragment
}
prefix {
...IpNetworkFragment
}
isNetworkAddress
isHostAddress
network {
...NetworkFragment
}
arpTableEntries {
...ArpTableEntryConnectionFragment
}
interfaces {
...InterfaceConnectionFragment
}
ports {
...OpenPortConnectionFragment
}
seenOnDevices {
...DeviceConnectionFragment
}
seenOnInterfaces {
...InterfaceConnectionFragment
}
services {
...ServiceConnectionFragment
}
findings {
...FindingsPayloadFragment
}
issues {
...IssuesPayloadFragment
}
issuesSummary {
...IssuesSummaryFragment
}
}
}
}
Variables
{
"id": "4",
"mockOptions": MockDataInput
}
Response
{"data": {"networkPrefix": {"node": NetworkPrefix}}}