Modify firewall settings for a virtual server

Configure firewall options for your virtual server (VM). You can enable or disable the firewall and set an incoming policy. The endpoint returns a requestId to track the operation in other systems.

Path Parameters

vmid integer · min: 1 required Example

Unique vmid identifier

Headers

Accept Example
Content-Type Example

Body

required
application/json
enable integer required
policy_in string · enum required
ACCEPT
DROP

Responses

200
success boolean
timestamp string
requestId string
data object
401
error string
message string
code string
timestamp string
requestId string
PUT https://cloud.hostup.se/api/vm/{vmid}/firewall/options
For AI assistants
cURL
curl -X PUT "https://cloud.hostup.se/api/vm/17270/firewall/options" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enable": 0,
    "policy_in": "ACCEPT"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "message": "string"
  }
}
Request Body
{
  "enable": 0,
  "policy_in": "ACCEPT"
}