Hetzner hcloud icon

Hetzner hcloud

Interact with the cloud api of the german infrastructure provider Hetzner.

Actions47

SSH Keys → List

AI-generated

Summary

List SSH keys in your Hetzner Cloud account with optional filtering, sorting, and pagination to retrieve specific or subsets of SSH keys.

Inputs

  • filters — Optional filters to narrow down the SSH keys returned: filter by 'Name' to match SSH keys by name, 'Fingerprint' to return a specific SSH key, or 'Label' to select keys matching specific labels.
  • sort — Sort the list by 'id', 'name', or 'created' fields in ascending or descending order.
  • page — Specify which page of results to return (minimum 1).
  • per_page — Set how many SSH keys to retrieve per page (minimum 1).

Output shape

a list of SSH key objects

The returned data contains SSH keys matching the provided filters and sorted accordingly, limited by pagination. If no filters are provided, all SSH keys are listed, paginated by page and per_page parameters.

Examples

Example 1: List SSH keys filtered by label and sorted by creation date descending

Set filter 'label_selector' to a specific label, and sort to 'created:desc'.

Links

Discussion