Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Setup

AI-generated

Overview

This node operation sets up a Virtual Private Server (VPS) using the Hostinger API. It allows users to configure a VPS by specifying parameters such as the OS template, data center location, root password, optional post-install script, Monarx malware scanner installation, automatic backups, and SSH public key details. This operation is useful for automating the initial setup and configuration of VPS instances, ensuring consistent and repeatable deployments.

Use Case Examples

  1. Automate VPS setup with a specific OS template and data center for rapid deployment.
  2. Configure VPS with a secure root password and enable automatic backups for data safety.
  3. Install Monarx malware scanner during VPS setup to enhance security.
  4. Add an SSH public key during setup for secure access without passwords.

Properties

Name Meaning
Virtual Machine ID Identifier of the VPS to be set up, required to specify which VPS instance to configure.
Template ID The ID of the OS template to use for setting up the VPS, defining the operating system and base configuration.
Root Password Root password for the VPS, must be at least 12 characters including uppercase, lowercase, and a number, used for secure access.
Post Install Script ID Optional ID of a post-install script to run after the VPS setup completes, allowing custom configuration or software installation.
Data Center ID ID of the data center where the VPS will be set up, specifying the physical location of the server.
Install Monarx Boolean flag indicating whether to install the Monarx malware scanner on the VPS during setup.
Enable Backups Boolean flag to enable or disable automatic backups for the VPS.
Public Key Name Name for the SSH public key to be added to the VPS for secure access.
Public Key SSH public key content to be added to the VPS, enabling key-based authentication.

Output

JSON

  • response - The JSON response from the Hostinger API after setting up the VPS, containing details about the VPS configuration and status.

Dependencies

  • Hostinger API with authentication credentials

Troubleshooting

  • Ensure the Virtual Machine ID is correct and the VPS exists before setup.
  • Verify the Template ID corresponds to a valid OS template available in the Hostinger system.
  • Root password must meet complexity requirements; otherwise, the API may reject the request.
  • If using a post-install script, confirm the script ID is valid and accessible.
  • Check that the Data Center ID is valid and the data center is operational.
  • Network or authentication errors may occur if API credentials are incorrect or expired; verify API key validity.

Links

Discussion