Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How do you turn off auto-delete for primary-ip with cli? #984

Open
einarpersson opened this issue Feb 12, 2025 · 2 comments
Open

How do you turn off auto-delete for primary-ip with cli? #984

einarpersson opened this issue Feb 12, 2025 · 2 comments
Labels

Comments

@einarpersson
Copy link

Hi,

I cant figure out how to turn off auto-delete of a primary ip. I could not discover it with the --help flag. i found something under hcloud primary-ip update that related to that setting but i couldn't turn it off by omitting the flag.

Thanks

@jooola
Copy link
Member

jooola commented Feb 14, 2025

Using the latest version of the CLI, you should be able to run the following:

hcloud primary-ip update <name-or-id> --auto-delete=<true|false>

@einarpersson
Copy link
Author

einarpersson commented Feb 14, 2025

Ok, looks good. But I would suggest to add some kind of bool hint <true|false> to the cli help

Update a Primary IP

Usage:
  hcloud primary-ip update [options] <primary-ip>

Flags:
      --auto-delete   Delete this Primary IP when the resource it is assigned to is deleted
  -h, --help          help for update
      --name string   Primary IP name

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants