Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Hostname Update

AI-generated

Overview

This node operation updates the hostname of a specified VPS (Virtual Private Server) using the Hostinger API. It is useful for scenarios where you need to change the server's hostname to a new domain or identifier, such as rebranding, organizational changes, or server management tasks.

Use Case Examples

  1. Updating the hostname of a VPS to a new domain name like 'my.server.tld'.
  2. Changing the VPS hostname to reflect a new project or environment.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS whose hostname is to be updated.
Hostname The new hostname to assign to the VPS, e.g., 'my.server.tld'.

Output

JSON

  • response - The JSON response from the Hostinger API after updating the VPS hostname, containing details of the operation result.

Dependencies

  • Hostinger API authentication credential required to authorize API requests.

Troubleshooting

  • Ensure the Virtual Machine ID is correct and corresponds to an existing VPS.
  • Verify the new hostname is valid and follows hostname conventions (e.g., no invalid characters).
  • Check that the Hostinger API credentials are correctly configured and have sufficient permissions.
  • Common error messages may include authentication failures, invalid VM ID, or invalid hostname format. Resolving these involves correcting credentials, verifying input values, and ensuring API access rights.

Links

Discussion