forked from toolshed/abra-hetzner
Fill out hacking docs
This commit is contained in:
parent
140bef2acc
commit
85c28d0551
14
README.md
14
README.md
@ -3,3 +3,17 @@
|
|||||||
[](https://drone.autonomic.zone/coop-cloud/abra-hetzner)
|
[](https://drone.autonomic.zone/coop-cloud/abra-hetzner)
|
||||||
|
|
||||||
Hetzner plugin for `abra`.
|
Hetzner plugin for `abra`.
|
||||||
|
|
||||||
|
## Hacking
|
||||||
|
|
||||||
|
You can read the Hetzner Cloud API docs (e.g. [locations endpoint](https://docs.hetzner.cloud/#locations)).
|
||||||
|
|
||||||
|
Then you can make requests and see what comes out. These values can then fed into this plugin as configurables.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ export API_TOKEN=<hetzner-api-token>
|
||||||
|
$ curl -H "Authorization: Bearer $API_TOKEN" 'https://api.hetzner.cloud/v1/locations' | jq '.locations | .[] | .name'`
|
||||||
|
"fsn1"
|
||||||
|
"nbg1"
|
||||||
|
"hel1"
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user