Catalog

scherbelberg offers facilities to get a list of available data center locations as well as lists of available server types per location plus their specifications and prices.

Routines

async scherbelberg.get_datacenters(tokenvar='HETZNER')

Queries a list of data centers.

Parameters

tokenvar (str) – Name of the environment variable holding the cloud API login token.

Return type

List[Dict[str, Any]]

Returns

Data centers.

async scherbelberg.get_servertypes(datacenter='fsn1-dc14', tokenvar='HETZNER')

Queries a list of server types plus their specifications and prices.

Parameters
  • datacenter (str) – Name of data center location.

  • tokenvar (str) – Name of the environment variable holding the cloud API login token.

Return type

List[Dict[str, Any]]

Returns

Server types plus their specifications and prices.