Firewall
Update Server Firewall Groups
put
/firewall/{server_type}/{server_id}/groupsReplace all firewall groups assigned to a VPS or baremetal server.
The new rules are applied in the background. On a VPS both inbound and outbound rules apply. On a baremetal server they are enforced on its switch ports: only inbound rules apply, replies to connections the server opens are allowed for TCP and for UDP from ports 53 and 123, and ICMP is always allowed. An empty list disables the firewall.
Autorización
Authorization
Authorization*string
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Parámetros de ruta
server_type*FirewallServerType
Valores
"vps""baremetal"server_id*integer
Rango
1 ≤ valueCuerpo de la petición
Update the firewall group assignments of a VPS or baremetal server
application/jsonObligatorio
firewall_group_ids*array<integer>
Respuestas
Successful Response
application/json
detail*string
server_type*string
server_id*integer
vps_id?integer | null
baremetal_id?integer | null
firewall_groups*array<integer>
sync_task_created*boolean