hcloud-api
v1.0.3
Published
Autogenerated API wrapper for the Hetzner Cloud API
Readme
HCloud API JS Wrapper
This package is unofficial. OpenAPI spec used is the unoficial types by Maximilian Köstler.
- https://github.com/MaximilianKoestler/hcloud-openapi
Installation
npm install hcloud-api
Usage
You can create a client like this:
const client = HCloudClient(process.env.HCLOUD_API_KEY || "");Example
const client = HCloudClient(process.env.HCLOUD_API_KEY || "");
const { data, error } = await client.listServers<false /* true or false, true if you want it to throw an error on failure */>({
query: {
page: 1,
per_page: 10
}
})Endpoints
Supported Endpoints are listed here.
License
Licensed under MIT.
