Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS Firewall → Firewall Rule Update

AI-generated

Overview

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

  1. Updating a firewall rule to block a specific IP address range.
  2. 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.

Discussion