Skip to main content
Glama

hostinger-api-mcp

Official

VPS_updateFirewallRuleV1

Modify a specific firewall rule on a virtual machine by updating protocol, port, and source details. Changes require manual sync for affected VMs.

Instructions

Update a specific firewall rule from a specified firewall.

Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.

Use this endpoint to modify existing firewall rules.

Input Schema

NameRequiredDescriptionDefault
firewallIdYesFirewall ID
portYesPort or port range, ex: 1024:2048
protocolYesprotocol parameter
ruleIdYesFirewall Rule ID
sourceYessource parameter
source_detailYesIP range, CIDR, single IP or `any`

Input Schema (JSON Schema)

{ "properties": { "firewallId": { "description": "Firewall ID", "type": "integer" }, "port": { "description": "Port or port range, ex: 1024:2048", "type": "string" }, "protocol": { "description": "protocol parameter", "enum": [ "TCP", "UDP", "ICMP", "GRE", "any", "ESP", "AH", "ICMPv6", "SSH", "HTTP", "HTTPS", "MySQL", "PostgreSQL" ], "type": "string" }, "ruleId": { "description": "Firewall Rule ID", "type": "integer" }, "source": { "description": "source parameter", "enum": [ "any", "custom" ], "type": "string" }, "source_detail": { "description": "IP range, CIDR, single IP or `any`", "type": "string" } }, "required": [ "firewallId", "ruleId", "protocol", "port", "source", "source_detail" ], "type": "object" }

Implementation Reference

  • TypeScript interface definition (schema) for the 'VPS_updateFirewallRuleV1' tool in the APITools interface, detailing input parameters (firewallId, ruleId, protocol, port, source, source_detail) and generic response.
    /** * Update a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to modify existing firewall rules. */ "VPS_updateFirewallRuleV1": { params: { /** * Firewall ID */ firewallId: number; /** * Firewall Rule ID */ ruleId: number; /** * protocol parameter */ protocol: string; /** * Port or port range, ex: 1024:2048 */ port: string; /** * source parameter */ source: string; /** * IP range, CIDR, single IP or `any` */ source_detail: string; }; response: any; // Response structure will depend on the API };

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hostinger/api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server