Skip to main content

Hetzner Cloud

Hetzner Cloud is a European cloud infrastructure provider offering virtual private servers (VPS), dedicated servers, and cloud resources with competitive pricing and high-performance computing capabilities. This integration provides comprehensive visibility and management capabilities across your Hetzner Cloud infrastructure, enabling you to query, monitor, and analyze all aspects of your cloud environment.

CategoryCloud
DirectionQuery source
Sign-inAPI Token
Query languagesSQLite
Tables11
Query templates32
Websitehetzner.com

Before you start​

Huntbase signs in to Hetzner Cloud with API Token. Create the credential in Hetzner Cloud first, then keep it to hand for the Connect step.

  1. In the Hetzner Console, open the project you want to query.
  2. Select Security in the left menu, then API tokens in the top menu.
  3. Click Generate API token, enter a description, and choose the Read permission.
  4. Copy the token before you close the window.

Permissions:

  • Read (GET requests only)
Watch out for
  • A token covers a single project. Create one connection for each project you want to query.
  • You can't view the token again after closing the window. If you lose it, generate a new one.

For the vendor's own instructions, see Hetzner Cloud API token documentation.

tip

Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.

Connect Hetzner Cloud​

  1. Go to Connections and click New connection, or click New connection on the Hetzner Cloud product page.
  2. On Product, pick Hetzner Cloud and choose the Owner.
  3. On Details, give the connection a Name and, optionally, a Description.
  4. On Connect, fill in the settings and credentials described below.
  5. On Verify, review the summary and click Create & check.

For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.

Credentials​

The only Method is API Token. Enter a Credential label (for example Production), then fill in:

FieldRequiredNotes
API TokenYesSecret — not shown again after you save it.

Query it​

Once connected, Hetzner Cloud can serve these languages in a query tab, and Scout can use it when you ask in Auto:

LanguageUse it for
SQLiteSQL over the 11 tables listed below, alongside every other connected source.

Example: SQLite​

List all SSH keys — Explore all SSH keys within your system to gain a comprehensive overview of your security mechanisms.

select
*
from
hcloud_ssh_key;

Hetzner Cloud ships with 32 query templates. Find them in Library › Queries — see Query templates.

Tables​

Hetzner Cloud adds 11 tables. Browse their columns from Schema in the query bar's ⋯ menu.

All 11 tables
TableContains
hcloud_actionActions performed in the Hetzner Cloud account.
hcloud_datacenterData centers available to the Hetzner Cloud account.
hcloud_firewallFirewall resources in Hetzner Cloud.
hcloud_imageImages in the Hetzner Cloud account.
hcloud_locationLocations available to the Hetzner Cloud account.
hcloud_networkData centers available to the Hetzner Cloud account.
hcloud_placement_groupPlacement groups available in the Hetzner Cloud account.
hcloud_serverServers in the Hetzner Cloud account.
hcloud_server_typeServer types in Hetzner Cloud.
hcloud_ssh_keySSH keys in the Hetzner Cloud account.
hcloud_volumeVolumes in the Hetzner Cloud account.

Next steps​