Firewall

Add Firewall Rule

Add a firewall rule to a server.

post/servers/{id}/firewall

Request

  • Base URL: https://gpucloud.ca/api
  • URL: https://gpucloud.ca/api/servers/{id}/firewall
  • Auth: HTTP bearer

Request body

direction'ingress' | 'egress' required
protocol'tcp' | 'udp' | 'icmp' required
ethertype'IPv4' | 'IPv6'
remoteIpPrefixstring

Source CIDR (default: anywhere)

portRangeMininteger
portRangeMaxinteger

Example request

{
  "remoteIpPrefix": "203.0.113.0/24"
}

Response

Firewall rule created

Changes

No recorded changes to this operation across all 1 revision of this API.