I am trying to remove one droplet with id 222 from Loadbalancer with lb_id=88-33-ff via doctl command as follow:
doctl compute load-balancer remove-droplets 88-33-ff --droplet-ids 222
but i got the following error:
Error: DELETE https://api.digitalocean.com/v2/load_balancers/xxx-xx-xx-xx-xxx/droplets: 422 (request "xxx-xx-xxx-xxx-xxxx") need to provide either a tag or a list of droplets
is my command correct or i am missing something? can anyone please help me and give a tip?
Note: here lb-id and droplet-id are fake, but the real one exist. Reference: https://docs.digitalocean.com/reference/doctl/reference/compute/load-balancer/remove-droplets/
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.