Retrieves an OpenPort by its graph object id: a TCP or UDP port on a discovered device, found by endpoint port scans of local devices or by Wartiva's scan of public IP addresses, with its open and closed history and whether it is exposed publicly. A Device lists its ports through ports, and each port lists the Service objects identified on it; find them across the organization with graphSearch on the OPEN_PORT 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 an OpenPortPayload!
Arguments
| Name | Description |
|---|---|
id - ID!
|
The OpenPort identifier. |
mockOptions - MockDataInput
|
Options for mock data generation. Options supported: none. |
Example
Query
query openPort(
$id: ID!,
$mockOptions: MockDataInput
) {
openPort(
id: $id,
mockOptions: $mockOptions
) {
node {
id
orgId
objectType
objectTypeLabel
displayName
firstSeen
lastSeen
seen {
...SeenOnlineFragment
}
createdAt
updatedAt
snapshotInfo {
...GraphObjectSnapshotInfoFragment
}
device {
...DeviceFragment
}
network {
...NetworkFragment
}
networkPrefix {
...NetworkPrefixFragment
}
ip {
...IpAddressFragment
}
isOpen
public
port
protocol
state
services {
...ServiceConnectionFragment
}
endpoints {
...EndpointConnectionFragment
}
firstSeenOpen
lastSeenOpen
lastSeenClosed
seenOpen {
...SeenOnlineFragment
}
openToEndpointCount
findings {
...FindingsPayloadFragment
}
issues {
...IssuesPayloadFragment
}
issuesSummary {
...IssuesSummaryFragment
}
}
}
}
Variables
{
"id": "4",
"mockOptions": MockDataInput
}
Response
{"data": {"openPort": {"node": OpenPort}}}