Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS Docker Manager → Stop Project

AI-generated

Overview

This node interacts with the Hostinger API to manage Docker projects on VPS (Virtual Private Server) instances. Specifically, the 'Stop Project' operation stops a running Docker project on a specified VPS. This is useful for managing containerized applications hosted on VPS, allowing users to programmatically control the lifecycle of their Docker projects, such as stopping projects when they are no longer needed or for maintenance purposes.

Use Case Examples

  1. Stopping a Docker project named 'my-docker-app' running on a VPS with ID 'vm-12345' to free up resources or perform updates.
  2. Automating the shutdown of Docker projects during off-hours to save costs.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS where the Docker project is running. This is required to specify which VPS instance to target for stopping the Docker project.
Docker Project Name The name of the Docker project to stop on the specified VPS. This identifies which Docker project should be stopped.

Output

JSON

  • response - The JSON response from the Hostinger API after attempting to stop the Docker project, containing details about the operation's success or failure.

Dependencies

  • Hostinger API with appropriate credentials for authentication

Troubleshooting

  • Ensure the Virtual Machine ID and Docker Project Name are correctly specified; incorrect values will cause the API call to fail.
  • Check that the Hostinger API credentials are valid and have sufficient permissions to manage Docker projects on the VPS.
  • If the Docker project is already stopped or does not exist, the API may return an error or a specific status indicating this condition.

Links

Discussion