Hetzner Primary IPs API
Primary IPs help you to create more flexible networking setups. You can assign at most one Primary IP of type `ipv4` and one of type `ipv6` per Server. This Server then uses these IPs.You can only unassign a Primary IP from a Server when it's powered off. This Primary IP can then be assigned to a different powered off Server, or you can keep it around for later use.Primary IPs are bound to a specific Location. You can not assign a Primary IP from one Location to a Server in a different Location. If you need this capability use Floating IPs instead.If your Server's operating system supports cloud-init there is no further configuration needed to make Primary IPs work.Primary IPs of type `ipv4` use a single IPv4 address as their `ip` property. Primary IPs of type `ipv6` use a /64 network such as `fc00::/64` as their `ip` property. Any IP address within that network can be used on your host.Primary IPs are billed on an hourly basis.
Hetzner Primary IPs API is one of 32 APIs that Hetzner publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Primary IPs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a getting-started guide.
This API exposes 5 operations across 2 paths. It is described by OpenAPI 3.0.3, at version 1.0.0.
Requests are made against a single base URL, https://api.hetzner.cloud/v1.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Hetzner Primary IPs API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (APIToken).
By default, every request must be authenticated.
Paths & Operations 5
Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.
Primary IPs help you to create more flexible networking setups. You can assign at most one Primary IP of type ipv4 and one of type ipv6 per Server. This Server then uses these IPs…
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Hetzner 12
Other APIs Hetzner publishes across the network.