server
Replace firewall rules
Replace the Cloud Server's complete firewall rule chain. Array order determines rule positions. Changes can take 1-2 minutes to take effect.
put/1.3/server/{uuid}/firewall_rule
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/server/{uuid}/firewall_rule
- Auth: HTTP bearer
Path parameters
uuidstring uuid required
Universally unique identifier
Example:0414e0d7-4436-4037-9dd8-6eaf47dce599
Cloud Server UUID
Request body
Example request
{
"firewall_rules": {
"firewall_rule": [
{
"action": "accept",
"comment": "Allow SSH",
"destination_port_end": "22",
"destination_port_start": "22",
"direction": "in",
"family": "IPv4",
"protocol": "tcp"
},
{
"action": "drop",
"direction": "in"
}
]
}
}Response
Firewall rules replaced
Changes
No recorded changes to this operation across all 1 revision of this API.