hcloud-python API

Main Interface

class Client(token, api_endpoint='https://api.hetzner.cloud/v1', application_name=None, application_version=None, poll_interval=1)[source]

Base Client for accessing the Hetzner Cloud API

actions = None

ActionsClient Instance

Type:ActionsClient
certificates = None

CertificatesClient Instance

Type:CertificatesClient
datacenters = None

DatacentersClient Instance

Type:DatacentersClient
firewalls = None

FirewallsClient Instance

Type:FirewallsClient
floating_ips = None

FloatingIPsClient Instance

Type:FloatingIPsClient
images = None

ImagesClient Instance

Type:ImagesClient
isos = None

ImagesClient Instance

Type:IsosClient
load_balancer_types = None

LoadBalancerTypesClient Instance

Type:LoadBalancerTypesClient
load_balancers = None

LoadBalancersClient Instance

Type:LoadBalancersClient
locations = None

LocationsClient Instance

Type:LocationsClient
networks = None

NetworksClient Instance

Type:NetworksClient
placement_groups = None

PlacementGroupsClient Instance

Type:PlacementGroupsClient
request(method, url, tries=1, **kwargs)[source]

Perform a request to the Hetzner Cloud API, wrapper around requests.request

Parameters:
  • method – str HTTP Method to perform the Request
  • url – str URL of the Endpoint
  • tries – int Tries of the request (used internally, should not be set by the user)
Returns:

Response

Return type:

requests.Response

server_types = None

ServerTypesClient Instance

Type:ServerTypesClient
servers = None

ServersClient Instance

Type:ServersClient
ssh_keys = None

SSHKeysClient Instance

Type:SSHKeysClient
volumes = None

VolumesClient Instance

Type:VolumesClient

Exceptions

class APIException(code, message, details)[source]

There was an error while performing an API Request

class ActionFailedException(action)[source]

The Action you was waiting for failed

class ActionTimeoutException(action)[source]

The Action you was waiting for timeouted in hcloud-python.