From 85c28d05519f8315399c13f3a9ceffc692efa4ed Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 7 Apr 2021 18:25:13 +0200 Subject: [PATCH] Fill out hacking docs --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 0fe118d..d0aa194 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,17 @@ [![Build Status](https://drone.autonomic.zone/api/badges/coop-cloud/abra-hetzner/status.svg?ref=refs/heads/main)](https://drone.autonomic.zone/coop-cloud/abra-hetzner) 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= +$ curl -H "Authorization: Bearer $API_TOKEN" 'https://api.hetzner.cloud/v1/locations' | jq '.locations | .[] | .name'` +"fsn1" +"nbg1" +"hel1" +```