Skip to main content
GET
Get port mappings

Path Parameters

cvm_id
string
required

Response

Port mappings

id
string<hashid>
required

A hashed identifier that maps to an internal database ID

Pattern: ^pm_.+
Example:

"pm_0123abcd"

host_port
integer
required
vm_port
integer
required
protocol
string
required
host_address
string
required
nic_index
integer
default:0
source_cidrs
string[]
description
string | null
public_host
string | null

Node-level public DNS/IP; None when the node is not publicly reachable.

forwarding_backend
string
default:vmm_hostfwd

"vmm_hostfwd" when QEMU forwards the port on a user-mode NIC, "netd_forward" when teescope-netd DNATs it to a bridge-mode NIC, "unknown" when the node has not reported its default network mode.

restart_required
boolean
default:false

Whether adding or removing this rule needs a CVM restart. Always false for netd_forward rules: netd installs them on the live host.

guest_ip
string | null

Guest address a netd_forward rule currently resolves to, read back from the node. None for vmm_hostfwd rules and when the node was not reachable. Empty string means the NIC's DHCP reservation is gone and the rule is inert.