Skip to main content

sc_crawler.vendors._hcloud

Inventory of Hetzner CloudHetzner CloudThe cloud platform of Hetzner Online, a German hosting company founded in 1997. Launched in 2018, it offers VMs with shared or dedicated vCPUs on AMD64 or Arm64 CPUs, block storage, and networking, from data centers in Germany, Finland, the United States, and Singapore.Hetzner CloudGlossary via its APIAPI: Application Programming InterfaceA defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions.WikipediaGlossary and manual data entry: servers, storages, traffic and IPv4 addresses, with their prices.

Functions:

  • inventory_compliance_frameworks – Manual list of known compliance frameworks at Hetzner.
  • inventory_regions – List all regionsregionA geographic area where a cloud vendor runs its data centers, such as Frankfurt or Northern Virginia, made up of one or more availability zones. A server type is offered in some regions only, and its price can differ by region; a region's ID, such as eu-central-1, is unique only within its vendor.Glossary via API call.
  • inventory_zones – List all regions as availability zonesavailability zoneOne or more isolated data centers within a cloud region, with their own power, cooling and network. A server runs in one zone; spreading servers over several zones of a region keeps a service up when one zone fails. Prices and the server types on offer can differ by zone.AWS docsGlossary.
  • inventory_servers – List all server types from API and manual data entry from the Hetzner Cloud homepage.
  • inventory_server_prices – List server prices per location from the server types API.
  • inventory_server_prices_spot – There are no spot instancesspot instanceA cloud server that runs on the vendor's spare capacity, at a large discount from its on-demand price, but which the vendor can stop or take back at short notice when it needs the capacity. Spot prices change with the demand, e.g. several times a day.AWS docsGlossary at Hetzner.
  • inventory_storages – Block storage volume information collected manually.
  • inventory_storage_prices – Block storage volume pricing information collected manually.
  • inventory_traffic_prices – Traffic price collected manually.
  • inventory_ipv4_prices – IPv4 price collected manually.
  • inventory_databases – Hetzner Cloud does not offer managed PostgreSQLPostgreSQLAn open-source object-relational database system, developed by a global community and descended from the POSTGRES project at UC Berkeley in 1986. It uses and extends SQL, with transactions, many index types, extensions, and JSON data.PostgreSQL docsGlossary.

func inventory_compliance_frameworks _hcloud.py:370–374⁠ (opens in a new tab)​

inventory_compliance_frameworks(vendor)

Manual list of known compliance frameworks at Hetzner.

Data collected from https://www.hetzner.com/unternehmen/zertifizierung⁠ (opens in a new tab).

func inventory_regions _hcloud.py:377–421⁠ (opens in a new tab)​

inventory_regions(vendor)

List all regions via API call.

Using the unique location name (e.g. fsn1) as the region id instead of the numeric location id, as the numeric ids were renumbered when the datacenters endpoint got deprecated, while the names are stable and are also used to reference locations in the server type prices, and can be passed instead of the id in most hcloud API endpoints via the id_or_name method. The former datacenter region ids (and their zones) are archived via sc_crawler.archive_rules.

All regions are powered by green energy as per https://www.hetzner.com/unternehmen/umweltschutz/⁠ (opens in a new tab).

func inventory_zones _hcloud.py:424–444⁠ (opens in a new tab)​

inventory_zones(vendor)

List all regions as availability zones.

There is no concept of having multiple availability zones within a location at Hetzner Cloud, so creating 1-1 dummy Zones reusing the Region id and name.

func inventory_servers _hcloud.py:447–529⁠ (opens in a new tab)​

inventory_servers(vendor)

List all server types from API and manual data entry from the Hetzner Cloud homepage.

CPUCPU: Central Processing UnitThe general-purpose processor of a computer, which runs the operating system and programs. A CPU has one or more physical cores, and with SMT each core runs two or more hardware threads.WikipediaGlossary information is recorded from https://www.hetzner.com/cloud/⁠ (opens in a new tab) as not exposed via API.

Lifecycle (per-location server type fields): deprecation.unavailable_after in past -> RETIRED, deprecation present -> PLANNED_FOR_RETIREMENT, empty locations -> INACTIVE, otherwise (including sold out) ACTIVE. See _hcloud_server_status. Known types removed from the API -> RETIRED, see _retired_servers. The retirement date is the latest deprecation.unavailable_after, see _hcloud_server_retirement_date.

func inventory_server_prices _hcloud.py:532–574⁠ (opens in a new tab)​

inventory_server_prices(vendor)

List server prices per location from the server types API.

prices[].location and locations[].location.name are both the location name, which is also used as our Region id.

func inventory_server_prices_spot _hcloud.py:577–579⁠ (opens in a new tab)​

inventory_server_prices_spot(vendor)

There are no spot instances at Hetzner.

func inventory_storages _hcloud.py:582–605⁠ (opens in a new tab)​

inventory_storages(vendor)

Block storage volume information collected manually.

There is not information shared vie the API, so information was collected manually from:

func inventory_storage_prices _hcloud.py:608–625⁠ (opens in a new tab)​

inventory_storage_prices(vendor)

Block storage volume pricing information collected manually.

Source: https://www.hetzner.com/cloud/block-storage/⁠ (opens in a new tab)

func inventory_traffic_prices _hcloud.py:628–657⁠ (opens in a new tab)​

inventory_traffic_prices(vendor)

Traffic price collected manually.

Source: https://docs.hetzner.com/robot/general/traffic/⁠ (opens in a new tab)

func inventory_ipv4_prices _hcloud.py:660–676⁠ (opens in a new tab)​

inventory_ipv4_prices(vendor)

IPv4 price collected manually.

Source: https://docs.hetzner.com/cloud/servers/overview#network-options⁠ (opens in a new tab)

func inventory_databases _hcloud.py:679–681⁠ (opens in a new tab)​

inventory_databases(vendor)

Hetzner Cloud does not offer managed PostgreSQL.