v2

latestOpenAPI 3.0.02026-08-0688139156.5 KB
Networks

Create port forward

post/v1/network/{network_id}/port-forward

Path parameters

network_idstring required

ID of an network

Example:net_012345

Request body

deststring required

Destination IP address and port pair

protostring required

Protocol, tcp or udp

Example request

{
  "dest": "10.0.0.100:80",
  "proto": "tcp"
}

Response

Created

deststring required

Destination IP address and port pair

endpointstring

Public host:port pair of the public gateway of the port forward

portinteger required

Listen port number on the public gateway

port_forward_idstring required

ID of a port forward definition

protostring required

Protocol, tcp or udp

Example response

{
  "dest": "10.0.0.100:80",
  "endpoint": "use1-prod-gateway-1.slide.tech:25881",
  "port": 25881,
  "port_forward_id": "pfw_0123456789ab",
  "proto": "tcp"
}