Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS → Get Public Keys

AI-generated

Overview

This node operation retrieves the list of public SSH keys associated with a specific VPS (Virtual Private Server) identified by its Virtual Machine ID. It is useful for managing and auditing SSH keys that provide access to the VPS, ensuring secure and controlled access management.

Use Case Examples

  1. A user wants to list all SSH public keys attached to their VPS to verify which keys have access.
  2. An administrator needs to audit the public keys on a VPS before granting or revoking access.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS for which the public keys are to be retrieved.

Output

JSON

  • response - The JSON response containing the list of public SSH keys associated with the specified VPS.

Dependencies

  • Hostinger API authentication credential

Troubleshooting

  • Ensure the Virtual Machine ID is correct and corresponds to an existing VPS.
  • Verify that the API credentials used have sufficient permissions to access VPS public keys.
  • Check network connectivity to the Hostinger API endpoint.
  • Common error: 'Unsupported operation' indicates the operation name might be incorrect or not implemented; verify the operation parameter is set to 'getVmPublicKeys'.

Links

Discussion