npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cdk-x/hetzner-sdk

v0.5.0

Published

OpenAPI client for Hetzner Cloud API

Downloads

545

Readme

@cdk-x/[email protected]

This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Publishing

First build the package then run npm publish

Consuming

navigate to the folder of your consuming project and run one of the following commands.

published:

npm install @cdk-x/[email protected] --save

unPublished (not recommended):

npm install PATH_TO_GENERATED_PACKAGE --save

Documentation for API Endpoints

All URIs are relative to https://api.hetzner.cloud/v1

| Class | Method | HTTP request | Description | | ------------------------ | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------- | | ActionsApi | getAction | GET /actions/{id} | Get an Action | | ActionsApi | getActions | GET /actions | Get multiple Actions | | CertificateActionsApi | getCertificateAction | GET /certificates/{id}/actions/{action_id} | Get an Action for a Certificate | | CertificateActionsApi | getCertificatesAction | GET /certificates/actions/{id} | Get an Action | | CertificateActionsApi | listCertificateActions | GET /certificates/{id}/actions | List Actions for a Certificate | | CertificateActionsApi | listCertificatesActions | GET /certificates/actions | List Actions | | CertificateActionsApi | retryCertificate | POST /certificates/{id}/actions/retry | Retry Issuance or Renewal | | CertificatesApi | createCertificate | POST /certificates | Create a Certificate | | CertificatesApi | deleteCertificate | DELETE /certificates/{id} | Delete a Certificate | | CertificatesApi | getCertificate | GET /certificates/{id} | Get a Certificate | | CertificatesApi | listCertificates | GET /certificates | List Certificates | | CertificatesApi | updateCertificate | PUT /certificates/{id} | Update a Certificate | | DataCentersApi | getDatacenter | GET /datacenters/{id} | Get a Data Center | | DataCentersApi | listDatacenters | GET /datacenters | List Data Centers | | FirewallActionsApi | applyFirewallToResources | POST /firewalls/{id}/actions/apply_to_resources | Apply to Resources | | FirewallActionsApi | getFirewallAction | GET /firewalls/{id}/actions/{action_id} | Get an Action for a Firewall | | FirewallActionsApi | getFirewallsAction | GET /firewalls/actions/{id} | Get an Action | | FirewallActionsApi | listFirewallActions | GET /firewalls/{id}/actions | List Actions for a Firewall | | FirewallActionsApi | listFirewallsActions | GET /firewalls/actions | List Actions | | FirewallActionsApi | removeFirewallFromResources | POST /firewalls/{id}/actions/remove_from_resources | Remove from Resources | | FirewallActionsApi | setFirewallRules | POST /firewalls/{id}/actions/set_rules | Set Rules | | FirewallsApi | createFirewall | POST /firewalls | Create a Firewall | | FirewallsApi | deleteFirewall | DELETE /firewalls/{id} | Delete a Firewall | | FirewallsApi | getFirewall | GET /firewalls/{id} | Get a Firewall | | FirewallsApi | listFirewalls | GET /firewalls | List Firewalls | | FirewallsApi | updateFirewall | PUT /firewalls/{id} | Update a Firewall | | FloatingIPActionsApi | assignFloatingIp | POST /floating_ips/{id}/actions/assign | Assign a Floating IP to a Server | | FloatingIPActionsApi | changeFloatingIpDnsPtr | POST /floating_ips/{id}/actions/change_dns_ptr | Change reverse DNS records for a Floating IP | | FloatingIPActionsApi | changeFloatingIpProtection | POST /floating_ips/{id}/actions/change_protection | Change Floating IP Protection | | FloatingIPActionsApi | getFloatingIpAction | GET /floating_ips/{id}/actions/{action_id} | Get an Action for a Floating IP | | FloatingIPActionsApi | getFloatingIpsAction | GET /floating_ips/actions/{id} | Get an Action | | FloatingIPActionsApi | listFloatingIpActions | GET /floating_ips/{id}/actions | List Actions for a Floating IP | | FloatingIPActionsApi | listFloatingIpsActions | GET /floating_ips/actions | List Actions | | FloatingIPActionsApi | unassignFloatingIp | POST /floating_ips/{id}/actions/unassign | Unassign a Floating IP | | FloatingIPsApi | createFloatingIp | POST /floating_ips | Create a Floating IP | | FloatingIPsApi | deleteFloatingIp | DELETE /floating_ips/{id} | Delete a Floating IP | | FloatingIPsApi | getFloatingIp | GET /floating_ips/{id} | Get a Floating IP | | FloatingIPsApi | listFloatingIps | GET /floating_ips | List Floating IPs | | FloatingIPsApi | updateFloatingIp | PUT /floating_ips/{id} | Update a Floating IP | | ISOsApi | getIso | GET /isos/{id} | Get an ISO | | ISOsApi | listIsos | GET /isos | List ISOs | | ImageActionsApi | changeImageProtection | POST /images/{id}/actions/change_protection | Change Image Protection | | ImageActionsApi | getImageAction | GET /images/{id}/actions/{action_id} | Get an Action for an Image | | ImageActionsApi | getImagesAction | GET /images/actions/{id} | Get an Action | | ImageActionsApi | listImageActions | GET /images/{id}/actions | List Actions for an Image | | ImageActionsApi | listImagesActions | GET /images/actions | List Actions | | ImagesApi | deleteImage | DELETE /images/{id} | Delete an Image | | ImagesApi | getImage | GET /images/{id} | Get an Image | | ImagesApi | listImages | GET /images | List Images | | ImagesApi | updateImage | PUT /images/{id} | Update an Image | | LoadBalancerActionsApi | addLoadBalancerService | POST /load_balancers/{id}/actions/add_service | Add Service | | LoadBalancerActionsApi | addLoadBalancerTarget | POST /load_balancers/{id}/actions/add_target | Add Target | | LoadBalancerActionsApi | attachLoadBalancerToNetwork | POST /load_balancers/{id}/actions/attach_to_network | Attach a Load Balancer to a Network | | LoadBalancerActionsApi | changeLoadBalancerAlgorithm | POST /load_balancers/{id}/actions/change_algorithm | Change Algorithm | | LoadBalancerActionsApi | changeLoadBalancerDnsPtr | POST /load_balancers/{id}/actions/change_dns_ptr | Change reverse DNS entry for this Load Balancer | | LoadBalancerActionsApi | changeLoadBalancerProtection | POST /load_balancers/{id}/actions/change_protection | Change Load Balancer Protection | | LoadBalancerActionsApi | changeLoadBalancerType | POST /load_balancers/{id}/actions/change_type | Change the Type of a Load Balancer | | LoadBalancerActionsApi | deleteLoadBalancerService | POST /load_balancers/{id}/actions/delete_service | Delete Service | | LoadBalancerActionsApi | detachLoadBalancerFromNetwork | POST /load_balancers/{id}/actions/detach_from_network | Detach a Load Balancer from a Network | | LoadBalancerActionsApi | disableLoadBalancerPublicInterface | POST /load_balancers/{id}/actions/disable_public_interface | Disable the public interface of a Load Balancer | | LoadBalancerActionsApi | enableLoadBalancerPublicInterface | POST /load_balancers/{id}/actions/enable_public_interface | Enable the public interface of a Load Balancer | | LoadBalancerActionsApi | getLoadBalancerAction | GET /load_balancers/{id}/actions/{action_id} | Get an Action for a Load Balancer | | LoadBalancerActionsApi | getLoadBalancersAction | GET /load_balancers/actions/{id} | Get an Action | | LoadBalancerActionsApi | listLoadBalancerActions | GET /load_balancers/{id}/actions | List Actions for a Load Balancer | | LoadBalancerActionsApi | listLoadBalancersActions | GET /load_balancers/actions | List Actions | | LoadBalancerActionsApi | removeLoadBalancerTarget | POST /load_balancers/{id}/actions/remove_target | Remove Target | | LoadBalancerActionsApi | updateLoadBalancerService | POST /load_balancers/{id}/actions/update_service | Update Service | | LoadBalancerTypesApi | getLoadBalancerType | GET /load_balancer_types/{id} | Get a Load Balancer Type | | LoadBalancerTypesApi | listLoadBalancerTypes | GET /load_balancer_types | List Load Balancer Types | | LoadBalancersApi | createLoadBalancer | POST /load_balancers | Create a Load Balancer | | LoadBalancersApi | deleteLoadBalancer | DELETE /load_balancers/{id} | Delete a Load Balancer | | LoadBalancersApi | getLoadBalancer | GET /load_balancers/{id} | Get a Load Balancer | | LoadBalancersApi | getLoadBalancerMetrics | GET /load_balancers/{id}/metrics | Get Metrics for a LoadBalancer | | LoadBalancersApi | listLoadBalancers | GET /load_balancers | List Load Balancers | | LoadBalancersApi | updateLoadBalancer | PUT /load_balancers/{id} | Update a Load Balancer | | LocationsApi | getLocation | GET /locations/{id} | Get a Location | | LocationsApi | listLocations | GET /locations | List Locations | | NetworkActionsApi | addNetworkRoute | POST /networks/{id}/actions/add_route | Add a route to a Network | | NetworkActionsApi | addNetworkSubnet | POST /networks/{id}/actions/add_subnet | Add a subnet to a Network | | NetworkActionsApi | changeNetworkIpRange | POST /networks/{id}/actions/change_ip_range | Change IP range of a Network | | NetworkActionsApi | changeNetworkProtection | POST /networks/{id}/actions/change_protection | Change Network Protection | | NetworkActionsApi | deleteNetworkRoute | POST /networks/{id}/actions/delete_route | Delete a route from a Network | | NetworkActionsApi | deleteNetworkSubnet | POST /networks/{id}/actions/delete_subnet | Delete a subnet from a Network | | NetworkActionsApi | getNetworkAction | GET /networks/{id}/actions/{action_id} | Get an Action for a Network | | NetworkActionsApi | getNetworksAction | GET /networks/actions/{id} | Get an Action | | NetworkActionsApi | listNetworkActions | GET /networks/{id}/actions | List Actions for a Network | | NetworkActionsApi | listNetworksActions | GET /networks/actions | List Actions | | NetworksApi | createNetwork | POST /networks | Create a Network | | NetworksApi | deleteNetwork | DELETE /networks/{id} | Delete a Network | | NetworksApi | getNetwork | GET /networks/{id} | Get a Network | | NetworksApi | listNetworks | GET /networks | List Networks | | NetworksApi | updateNetwork | PUT /networks/{id} | Update a Network | | PlacementGroupsApi | createPlacementGroup | POST /placement_groups | Create a PlacementGroup | | PlacementGroupsApi | deletePlacementGroup | DELETE /placement_groups/{id} | Delete a PlacementGroup | | PlacementGroupsApi | getPlacementGroup | GET /placement_groups/{id} | Get a PlacementGroup | | PlacementGroupsApi | listPlacementGroups | GET /placement_groups | List Placement Groups | | PlacementGroupsApi | updatePlacementGroup | PUT /placement_groups/{id} | Update a PlacementGroup | | PricingApi | getPricing | GET /pricing | Get all prices | | PrimaryIPActionsApi | assignPrimaryIp | POST /primary_ips/{id}/actions/assign | Assign a Primary IP to a resource | | PrimaryIPActionsApi | changePrimaryIpDnsPtr | POST /primary_ips/{id}/actions/change_dns_ptr | Change reverse DNS records for a Primary IP | | PrimaryIPActionsApi | changePrimaryIpProtection | POST /primary_ips/{id}/actions/change_protection | Change Primary IP Protection | | PrimaryIPActionsApi | getPrimaryIpAction | GET /primary_ips/{id}/actions/{action_id} | Get an Action for a Primary IP | | PrimaryIPActionsApi | getPrimaryIpsAction | GET /primary_ips/actions/{id} | Get an Action | | PrimaryIPActionsApi | listPrimaryIpActions | GET /primary_ips/{id}/actions | List Actions for a Primary IP | | PrimaryIPActionsApi | listPrimaryIpsActions | GET /primary_ips/actions | List Actions | | PrimaryIPActionsApi | unassignPrimaryIp | POST /primary_ips/{id}/actions/unassign | Unassign a Primary IP from a resource | | PrimaryIPsApi | createPrimaryIp | POST /primary_ips | Create a Primary IP | | PrimaryIPsApi | deletePrimaryIp | DELETE /primary_ips/{id} | Delete a Primary IP | | PrimaryIPsApi | getPrimaryIp | GET /primary_ips/{id} | Get a Primary IP | | PrimaryIPsApi | listPrimaryIps | GET /primary_ips | List Primary IPs | | PrimaryIPsApi | updatePrimaryIp | PUT /primary_ips/{id} | Update a Primary IP | | SSHKeysApi | createSshKey | POST /ssh_keys | Create an SSH key | | SSHKeysApi | deleteSshKey | DELETE /ssh_keys/{id} | Delete an SSH key | | SSHKeysApi | getSshKey | GET /ssh_keys/{id} | Get a SSH key | | SSHKeysApi | listSshKeys | GET /ssh_keys | List SSH keys | | SSHKeysApi | updateSshKey | PUT /ssh_keys/{id} | Update an SSH key | | ServerActionsApi | addServerToPlacementGroup | POST /servers/{id}/actions/add_to_placement_group | Add a Server to a Placement Group | | ServerActionsApi | attachServerIso | POST /servers/{id}/actions/attach_iso | Attach an ISO to a Server | | ServerActionsApi | attachServerToNetwork | POST /servers/{id}/actions/attach_to_network | Attach a Server to a Network | | ServerActionsApi | changeServerAliasIps | POST /servers/{id}/actions/change_alias_ips | Change alias IPs of a Network | | ServerActionsApi | changeServerDnsPtr | POST /servers/{id}/actions/change_dns_ptr | Change reverse DNS entry for this Server | | ServerActionsApi | changeServerProtection | POST /servers/{id}/actions/change_protection | Change Server Protection | | ServerActionsApi | changeServerType | POST /servers/{id}/actions/change_type | Change the Type of a Server | | ServerActionsApi | createServerImage | POST /servers/{id}/actions/create_image | Create Image from a Server | | ServerActionsApi | detachServerFromNetwork | POST /servers/{id}/actions/detach_from_network | Detach a Server from a Network | | ServerActionsApi | detachServerIso | POST /servers/{id}/actions/detach_iso | Detach an ISO from a Server | | ServerActionsApi | disableServerBackup | POST /servers/{id}/actions/disable_backup | Disable Backups for a Server | | ServerActionsApi | disableServerRescue | POST /servers/{id}/actions/disable_rescue | Disable Rescue Mode for a Server | | ServerActionsApi | enableServerBackup | POST /servers/{id}/actions/enable_backup | Enable and Configure Backups for a Server | | ServerActionsApi | enableServerRescue | POST /servers/{id}/actions/enable_rescue | Enable Rescue Mode for a Server | | ServerActionsApi | getServerAction | GET /servers/{id}/actions/{action_id} | Get an Action for a Server | | ServerActionsApi | getServersAction | GET /servers/actions/{id} | Get an Action | | ServerActionsApi | listServerActions | GET /servers/{id}/actions | List Actions for a Server | | ServerActionsApi | listServersActions | GET /servers/actions | List Actions | | ServerActionsApi | poweroffServer | POST /servers/{id}/actions/poweroff | Power off a Server | | ServerActionsApi | poweronServer | POST /servers/{id}/actions/poweron | Power on a Server | | ServerActionsApi | rebootServer | POST /servers/{id}/actions/reboot | Soft-reboot a Server | | ServerActionsApi | rebuildServer | POST /servers/{id}/actions/rebuild | Rebuild a Server from an Image | | ServerActionsApi | removeServerFromPlacementGroup | POST /servers/{id}/actions/remove_from_placement_group | Remove from Placement Group | | ServerActionsApi | requestServerConsole | POST /servers/{id}/actions/request_console | Request Console for a Server | | ServerActionsApi | resetServer | POST /servers/{id}/actions/reset | Reset a Server | | ServerActionsApi | resetServerPassword | POST /servers/{id}/actions/reset_password | Reset root Password of a Server | | ServerActionsApi | shutdownServer | POST /servers/{id}/actions/shutdown | Shutdown a Server | | ServerTypesApi | getServerType | GET /server_types/{id} | Get a Server Type | | ServerTypesApi | listServerTypes | GET /server_types | List Server Types | | ServersApi | createServer | POST /servers | Create a Server | | ServersApi | deleteServer | DELETE /servers/{id} | Delete a Server | | ServersApi | getServer | GET /servers/{id} | Get a Server | | ServersApi | getServerMetrics | GET /servers/{id}/metrics | Get Metrics for a Server | | ServersApi | listServers | GET /servers | List Servers | | ServersApi | updateServer | PUT /servers/{id} | Update a Server | | VolumeActionsApi | attachVolume | POST /volumes/{id}/actions/attach | Attach Volume to a Server | | VolumeActionsApi | changeVolumeProtection | POST /volumes/{id}/actions/change_protection | Change Volume Protection | | VolumeActionsApi | detachVolume | POST /volumes/{id}/actions/detach | Detach Volume | | VolumeActionsApi | getVolumeAction | GET /volumes/{id}/actions/{action_id} | Get an Action for a Volume | | VolumeActionsApi | getVolumesAction | GET /volumes/actions/{id} | Get an Action | | VolumeActionsApi | listVolumeActions | GET /volumes/{id}/actions | List Actions for a Volume | | VolumeActionsApi | listVolumesActions | GET /volumes/actions | List Actions | | VolumeActionsApi | resizeVolume | POST /volumes/{id}/actions/resize | Resize Volume | | VolumesApi | createVolume | POST /volumes | Create a Volume | | VolumesApi | deleteVolume | DELETE /volumes/{id} | Delete a Volume | | VolumesApi | getVolume | GET /volumes/{id} | Get a Volume | | VolumesApi | listVolumes | GET /volumes | List Volumes | | VolumesApi | updateVolume | PUT /volumes/{id} | Update a Volume | | ZoneActionsApi | changeZonePrimaryNameservers | POST /zones/{id_or_name}/actions/change_primary_nameservers | Change a Zone's Primary Nameservers | | ZoneActionsApi | changeZoneProtection | POST /zones/{id_or_name}/actions/change_protection | Change a Zone's Protection | | ZoneActionsApi | changeZoneTtl | POST /zones/{id_or_name}/actions/change_ttl | Change a Zone's Default TTL | | ZoneActionsApi | getZoneAction | GET /zones/{id_or_name}/actions/{action_id} | Get an Action for a Zone | | ZoneActionsApi | getZonesAction | GET /zones/actions/{id} | Get an Action | | ZoneActionsApi | importZoneZonefile | POST /zones/{id_or_name}/actions/import_zonefile | Import a Zone file | | ZoneActionsApi | listZoneActions | GET /zones/{id_or_name}/actions | List Actions for a Zone | | ZoneActionsApi | listZonesActions | GET /zones/actions | List Actions | | ZoneRRSetActionsApi | addZoneRrsetRecords | POST /zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/add_records | Add Records to an RRSet | | ZoneRRSetActionsApi | changeZoneRrsetProtection | POST /zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/change_protection | Change an RRSet's Protection | | ZoneRRSetActionsApi | changeZoneRrsetTtl | POST /zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/change_ttl | Change an RRSet's TTL | | ZoneRRSetActionsApi | removeZoneRrsetRecords | POST /zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/remove_records | Remove Records from an RRSet | | ZoneRRSetActionsApi | setZoneRrsetRecords | POST /zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/set_records | Set Records of an RRSet | | ZoneRRSetActionsApi | updateZoneRrsetRecords | POST /zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/update_records | Update Records of an RRSet | | ZoneRRSetsApi | createZoneRrset | POST /zones/{id_or_name}/rrsets | Create an RRSet | | ZoneRRSetsApi | deleteZoneRrset | DELETE /zones/{id_or_name}/rrsets/{rr_name}/{rr_type} | Delete an RRSet | | ZoneRRSetsApi | getZoneRrset | GET /zones/{id_or_name}/rrsets/{rr_name}/{rr_type} | Get an RRSet | | ZoneRRSetsApi | listZoneRrsets | GET /zones/{id_or_name}/rrsets | List RRSets | | ZoneRRSetsApi | updateZoneRrset | PUT /zones/{id_or_name}/rrsets/{rr_name}/{rr_type} | Update an RRSet | | ZonesApi | createZone | POST /zones | Create a Zone | | ZonesApi | deleteZone | DELETE /zones/{id_or_name} | Delete a Zone | | ZonesApi | getZone | GET /zones/{id_or_name} | Get a Zone | | ZonesApi | getZoneZonefile | GET /zones/{id_or_name}/zonefile | Export a Zone file | | ZonesApi | listZones | GET /zones | List Zones | | ZonesApi | updateZone | PUT /zones/{id_or_name} | Update a Zone |

Documentation For Models