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.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example enable integer required policy_in string · enum required ACCEPT DROP success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string https://cloud.hostup.se/api/vm/{vmid}/firewall/options 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"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"message": "string"
}
} {
"enable": 0,
"policy_in": "ACCEPT"
}