Get network port forwards
get_network_port_forwardsRead the NAT port forwarding rules of an owned private network: applied rules, router generation, state, exposure and targets. Use it to inspect or prepare changes before setting forwards.
Instructions
Read the NAT port forwarding rules of an owned private network: applied rules (protocol, external_port on the network's NAT public address, the target server's private_port_id and its internal_port), the router generation to send to set_network_port_forwards (not the network generation), state (empty, pending, active, failed), per-rule exposure (open_to_internet is true when the server's security groups admit that port from every IPv4 address), targets with eligible, unavailable_reason_code, kind (private_primary = a server without its own public IPv4, own_ipv4 = the private interface of a server that has one) and reply_route (own_ipv4 only), capability (available, limit, protocols), last_change (a refused change with its nat_port_forward_refused_* reason_code) and suspended (rules kept while the network has no NAT address; they are on no router). active is the router's committed state, not a packet test. The network needs its NAT public address (see get_network_routed_egress); capability.available false means new rules are not accepted for this account now, rules already there can still be removed. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network_id": "<network_id>"
},
"name": "get_network_port_forwards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_id | Yes | Exact lowercase UUID returned by an owned networking resource |