Actions100
- Billing Actions
- DNS Actions
- Domain Actions
- Domain Forwarding Actions
- Domain WHOIS Actions
- Reach Actions
- VPS Actions
- VPS Actions Actions
- VPS Backups Actions
- VPS Data Centers Actions
- VPS Docker Manager Actions
- VPS Firewall Actions
- VPS Malware Scanner Actions
- VPS Post Install Scripts Actions
- VPS PTR Actions
- VPS Public Keys Actions
- VPS Snapshots Actions
- VPS Templates Actions
VPS Firewall → Firewall Rule Update
AI-generatedOverview
This node operation updates a specific firewall rule within a VPS firewall using the Hostinger API. It is useful for managing firewall configurations programmatically, allowing users to modify rules such as IP addresses, ports, protocols, or actions to control network traffic for their VPS instances. For example, a user can update an existing firewall rule to block or allow certain IP ranges or ports to enhance security or adjust access policies.
Use Case Examples
- Updating a firewall rule to block a specific IP address range.
- Modifying a firewall rule to allow traffic on a new port for an application.
Properties
| Name | Meaning |
|---|---|
| Firewall ID | The unique identifier of the firewall to which the rule belongs. |
| Rule ID | The unique identifier of the firewall rule to update. |
| Request Body | Raw JSON body containing the details of the firewall rule update, such as rule parameters and settings. |
Output
JSON
response- The JSON response from the Hostinger API after updating the firewall rule, containing details of the updated rule or status.
Dependencies
- Hostinger API authentication token or API key credential
Troubleshooting
- Ensure the Firewall ID and Rule ID are correct and correspond to existing resources in the Hostinger VPS firewall.
- Validate the JSON structure in the Request Body to match the expected format for firewall rule updates.
- Check API authentication credentials are valid and have sufficient permissions to update firewall rules.
- Common errors include 'Unsupported operation' if the operation name is incorrect, or HTTP errors from the API if parameters are invalid or missing.