Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Recreate

AI-generated

Overview

This node operation allows users to recreate a VPS (Virtual Private Server) using the Hostinger API. It is useful for scenarios where a VPS needs to be reset or reinstalled with a specific OS template, optionally running a post-install script and setting new root and panel passwords. For example, a user can automate the process of recreating a VPS with a fresh OS template and secure passwords after a critical failure or before repurposing the server.

Use Case Examples

  1. Recreate a VPS with a new OS template and set a new root password.
  2. Recreate a VPS and run a post-install script to configure the server automatically.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS to be recreated.
Template ID The ID of the OS template to use for recreating the VPS.
Root Password The root password for the VPS, which must be at least 12 characters long and include uppercase, lowercase, and a number.
Panel Password The control panel password for the VPS, which must be at least 12 characters long and include uppercase, lowercase, and a number.
Post Install Script ID Optional ID of a post-install script to run after the VPS recreation.

Output

JSON

  • response - The JSON response from the Hostinger API after the VPS recreation request.

Dependencies

  • Hostinger API with authentication credentials

Troubleshooting

  • Ensure the Virtual Machine ID is correct and the VPS exists.
  • Verify that the Template ID corresponds to a valid OS template available in the Hostinger account.
  • Passwords must meet the complexity requirements (at least 12 characters with uppercase, lowercase, and a number).
  • If a post-install script ID is provided, ensure the script exists and is accessible.
  • Common errors include authentication failures, invalid parameters, or network issues. Check API credentials and network connectivity.

Links

Discussion