tonobo / hcloud-ruby

Native ruby client for HetznerCloud
MIT License
31 stars 11 forks source link

[Feature] Label support #12

Open Kjarrigan opened 5 years ago

Kjarrigan commented 5 years ago

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

Kjarrigan commented 5 years ago

Are you alive?

tonobo commented 5 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 1 year ago

We have additional affected resource types:

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