tonobo / hcloud-ruby

Native ruby client for HetznerCloud
MIT License
32 stars 10 forks source link

[Feature] Label support #12

Open Kjarrigan opened 6 years ago

Kjarrigan commented 6 years ago

https://github.com/hetznercloud/cli/commit/bf798628de328ba8b58c0225bff14f1c8c642dce

Kjarrigan commented 6 years ago

Are you alive?

tonobo commented 6 years ago

Of course ;)

MarkusFreitag commented 3 years ago

Any estimate when labels will be available, they would be quite handy for tagging resources for CI.

RaphaelPour commented 2 years ago

Hey :wave:

I want to take a look at the labels and just drop some thought here to go over it later.

Example:

# creating a server with labels
c = Hcloud::Client.new(token: "<your project token>")
c.servers.create(name: "moo6", server_type: "cx11", image: "ubuntu-22.04", labels: ["ci", "runner-923fb89a"])

# removing a label
c.servers.remove_label("ci")
ghost commented 2 years ago

We have additional affected resource types:

Resource types that also have labels, but are not implemented in this library, yet: