Create a port forwarding rule for a public IP address
Authentication
X-API-Client-IDstring
API Client ID
X-API-Client-Secretstring
API Client Secret
Path parameters
ipId
ID of the public IP address
Request
This endpoint expects an object.
privatePort
Port on the VM that traffic is forwarded to. Must be 1-65535.
publicPort
Port on the public IP that receives the inbound traffic. Must be 1-65535.
protocol
Protocol the forwarding rule applies to.
Allowed values:
vmId
Identifier of the VM the forwarded traffic is delivered to.
openFirewall
When true, automatically creates a matching firewall rule alongside the port forwarding rule.
tierId
For a public IP reserved in a VPC, the VPC tier the rule applies to. A VPC IP is not bound to any single tier, so the rule must target one. You only need to set this when the VM has interfaces in more than one tier of the VPC — otherwise the tier is determined automatically from the VM. Ignored for IPs reserved in an isolated network.
Response
The port forwarding rule has been created
id
Unique identifier for the port forwarding rule.
privatePort
Port on the VM that traffic is forwarded to.
publicPort
Port on the public IP that receives the inbound traffic.
protocol
Protocol the forwarding rule applies to. TCP or UDP.
vmId
Identifier of the VM the forwarded traffic is delivered to.
vmName
Name of the VM the forwarded traffic is delivered to.
ipAddressId
Identifier of the public IP the rule is attached to.
ipAddress
Public IP address the rule is attached to.
state
Current lifecycle state of the rule.
createdAt
When the rule was created.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error