Giter VIP home page Giter VIP logo

Comments (5)

rasodu avatar rasodu commented on May 13, 2024 1

Few more things to keep in mind

  • If droplet B's name is same as droplet A's ID(Unlikely to happen)
  • If someone changes name of a droplet or creates a new droplet in web interface.(Add a command to refresh internal droplet id/name cache OR refresh cache when doctl compute droplet list is executed)

from doctl.

bryanl avatar bryanl commented on May 13, 2024

Hello, I think this is a valid suggestion, and I have questions about failure cases. Nothing prevents you from giving two (or more) Droplets the same name. What would you expect to happen in that case?

from doctl.

perler avatar perler commented on May 13, 2024

right, I didn't realise, that you indeed can create multiple droplets with the same name. In this case doctl should simply spit out an error..

from doctl.

snoopdouglas avatar snoopdouglas commented on May 13, 2024

Something else to note here is that it's completely possible to give a droplet a name that could be identical to a droplet ID (ie. a numeric string).

So it'd probably be safest to explicitly specify that a name is being addressed, eg.:

# shutdown droplet with id = 12345678
doctl compute droplet-action shutdown 12345678

# shutdown droplet with name = "12345678"
doctl compute droplet-action shutdown --name 12345678

from doctl.

mauricio avatar mauricio commented on May 13, 2024

As we move more and more towards tags, we'll start using them for this kind of operations, once APIs move more into this direction we should have a better perspective on this but names are mostly for UI only.

from doctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.