Skip to main content
POST
Add a new firewall rule to a VPS instance

Authorizations

Authorization
string
header
required

An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….

Path Parameters

vmId
string
required
Minimum string length: 1

Body

application/json
type
enum<string>
required
Available options:
inbound,
outbound
protocol
enum<string>
required
Available options:
tcp,
udp,
icmp
port
string
source
string
destination
string
action
enum<string>
default:allow
Available options:
allow,
deny
comment
string
enabled
boolean
default:true

Response

Firewall rule added successfully

success
enum<boolean>
required
Available options:
true
message
enum<string>
required
Available options:
Firewall rule added successfully
data
object
required