VPS_activateFirewallV1
Activates a firewall on a virtual machine by assigning a firewall ID, enabling the application of firewall rules to the VPS instance.
Instructions
Activate a firewall for a specified virtual machine.
Only one firewall can be active for a virtual machine at a time.
Use this endpoint to apply firewall rules to VPS instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| firewallId | Yes | Firewall ID | |
| virtualMachineId | Yes | Virtual Machine ID |
Implementation Reference
- src/core/tools/vps.ts:324-352 (schema)Tool schema/registration entry for VPS_activateFirewallV1 - defines the tool as an OpenAPI tool with method POST, path '/api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId}', input schema requiring firewallId and virtualMachineId.
{ "name": "VPS_activateFirewallV1", "description": "Activate a firewall for a specified virtual machine.\n\nOnly one firewall can be active for a virtual machine at a time.\n\nUse this endpoint to apply firewall rules to VPS instances.", "method": "POST", "path": "/api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId}", "inputSchema": { "type": "object", "properties": { "firewallId": { "type": "integer", "description": "Firewall ID" }, "virtualMachineId": { "type": "integer", "description": "Virtual Machine ID" } }, "required": [ "firewallId", "virtualMachineId" ] }, "security": [ { "apiToken": [] } ], "group": "vps" },