Networks

Create port forward

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

Request

  • Base URL
    https://api.slide.tech
  • URL
    https://api.slide.tech/v1/network/{network_id}/port-forward
  • Auth
    HTTP bearer

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"
}

Changes