doctl
doctl copied to clipboard
Allow rebuild action to take user-data and user-data-file
Is it possible to have the --user-data and --user-data-file flag work with Droplet rebuild actions
For example instead of running this command:
doctl compute droplet action rebuild <droplet-id> <image-id>
We can have:
doctl compute droplet action rebuild <droplet-id> <image-id> --user-data-file='/path/to/user-data.yaml'
I don't know if this is due to a limitation of doctl or the API itself, but it would be a really nice feature to have.
Please let me know if there's already something similiar in the command line tool, or if there's a beta version with the functionality.
Hey @sranvir, your suspicion is correct – this is not possible due to a limitation in our API as of today. As far as I know, there's no workaround for this, but I'll raise this issue internally. I'll keep this issue open to track any future progress we make.
Thanks for the clarification, @bentranter ! I hope the API gets more features in future releases.
Hello! @bentranter what is supposed way to reprovision droplet keeping the same IP then, can you advise?
@CoolCold Floating IPs is the only way as far as I know.