Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS Docker Manager → Restart Project

AI-generated

Overview

This node interacts with the Hostinger API to restart a Docker project on a specified VPS (Virtual Private Server). It is useful for managing Docker projects hosted on VPS instances, allowing users to programmatically restart a project to apply updates, recover from errors, or refresh the environment.

Use Case Examples

  1. Restart a Docker project named 'my-project' on a VPS with ID 'vm-12345' to apply new configurations or recover from a failure.
  2. Automate the restart of Docker projects on multiple VPS instances as part of a deployment pipeline.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS where the Docker project is hosted. This is required to specify which VPS to target for the restart operation.
Docker Project Name The name of the Docker project to restart on the specified VPS. This identifies the specific project within the VPS Docker environment to be restarted.

Output

JSON

  • response - The JSON response from the Hostinger API after attempting to restart the Docker project. It contains details about the success or failure of the operation.

Dependencies

  • Hostinger API authentication credential

Troubleshooting

  • Ensure the Virtual Machine ID and Docker Project Name are correctly specified and exist on the Hostinger VPS.
  • Check that the Hostinger API credentials are valid and have the necessary permissions to manage Docker projects on the VPS.
  • If the API returns an error, verify the network connectivity and that the VPS is accessible.
  • Common error messages may include invalid VM ID, project not found, or authentication errors. Verify input parameters and credentials to resolve these issues.

Links

Discussion