Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS Public Keys → Create Public Key

AI-generated

Overview

This node operation allows users to create a new VPS public key in the Hostinger API. It is useful for managing SSH access to virtual private servers by adding new public keys that can be used for secure authentication. For example, a user can create a new SSH public key to enable secure access to their VPS without using passwords.

Use Case Examples

  1. Creating a new SSH public key for a VPS to enable secure access.
  2. Automating the addition of public keys to VPS instances for deployment workflows.

Properties

Name Meaning
Request Body Raw JSON body for the POST request to create a new VPS public key. This should include the public key details such as the key content and its name.

Output

JSON

  • response - The JSON response from the Hostinger API after creating the public key, containing details of the newly created public key.

Dependencies

  • Hostinger API authentication credential

Troubleshooting

  • Ensure the JSON in the Request Body is correctly formatted and includes all required fields such as the public key content and name.
  • Check that the API authentication credentials are correctly configured and have the necessary permissions to create public keys.
  • If the API returns an error, verify the endpoint URL and HTTP method are correct for creating a public key.
  • Handle API rate limits or network issues that might cause request failures.

Links

Discussion