{"id":13702510,"url":"https://github.com/LeonSpors/hcloud-nodejs","last_synced_at":"2025-05-05T04:31:11.620Z","repository":{"id":158692977,"uuid":"149138454","full_name":"LeonSpors/hcloud-nodejs","owner":"LeonSpors","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-29T10:07:06.000Z","size":1152,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T21:02:30.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeonSpors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-09-17T14:31:03.000Z","updated_at":"2024-01-10T10:07:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf032b29-d749-41e8-8638-36339f81acb0","html_url":"https://github.com/LeonSpors/hcloud-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonSpors%2Fhcloud-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonSpors%2Fhcloud-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonSpors%2Fhcloud-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonSpors%2Fhcloud-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeonSpors","download_url":"https://codeload.github.com/LeonSpors/hcloud-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224424576,"owners_count":17308919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T21:00:36.857Z","updated_at":"2024-11-13T09:31:00.076Z","avatar_url":"https://github.com/LeonSpors.png","language":"JavaScript","funding_links":[],"categories":["Libraries"],"sub_categories":["JavaScript"],"readme":"# hcloud-nodejs\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n\nhcloud is a node.js package for [Hetzner cloud](https://www.hetzner.de/cloud) that can be used to manage your projects.\n\n* [Installation](#installation)\n* [Usage](#usage)\n  * [Getting started](#getting-started)\n  * [Examples](#examples)\n  * [Full list of functions](#full-list-of-functions)\n* [License](#license)\n* [Author](#author)\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install hcloud-nodejs\n```\n\n## Usage\n\n### Getting started\n\nYou have to register your client(api token) first. To obtain an api token go to your project on [Hetzner Cloud Console](https://console.hetzner.cloud/projects) and navigate to access.\n```javascript\nvar hcloud = require('./index')\nhcloud.registerClient('7JciVOnx2hKiPXv2AeZmSGAWczWrDFjGohxAYEfnLWfFF5vDwUbT4hRB3BE3lF3E')\n```\n\n### Examples\n```javascript\nhcloud.server().create({\n        name                : 'server01',\n        server_type         : 'cx11',\n        location            : 'nbg1',\n        start_after_create  : false,\n        image               : 'ubuntu-16.04',\n    }, (callback) =\u003e {\n        console.log(callback)\n    })\n```\n\n```javascript\nhcloud.server().getAll((callback) =\u003e {\n        console.log(callback)\n    })\n```\n\n```javascript\nhcloud.server(920754).poweron((callback) =\u003e {\n        console.log(callback)\n    })\n```\n\n\n### Full list of functions\n* datacenter(id).get()\n* datacenter(id).getAll()\n* location(id).get()\n* location(id).getAll()\n* server().create(body, callback)\n* server().getAll(callback)\n* server(id).get(callback)\n* server(id).changeName(name, callback)\n* server(id).delete(callback)\n* server(id).poweron(callback)\n* server(id).shutdown(callback)\n* server(id).reboot(callback)\n* server(id).reset(callback)\n* server(id).resetRootPassword(callback)\n* server(id).enableRescue(callback)\n* server(id).disableRescue(callback)\n* server(id).requestConsole(callback)\n\n## Documentation\n\n[Offical API Documentation](https://docs.hetzner.cloud/)\n\n## License\n\n[GPL-3.0](LICENSE.md)\n\n## Author\n\n[Leon Spors](https://github.com/halfbax) ([business@spors.io](mailto:business@spors.io))\n\n[downloads-image]: https://img.shields.io/npm/dm/hcloud-nodejs.svg\n[downloads-url]: https://npmjs.org/package/hcloud-nodejs\n[npm-image]: https://img.shields.io/npm/v/hcloud-nodejs.svg\n[npm-url]: https://npmjs.org/package/hcloud-nodejs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonSpors%2Fhcloud-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeonSpors%2Fhcloud-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonSpors%2Fhcloud-nodejs/lists"}