api for event polling

September 9, 2012 3.5k views
hey, I notice when you create a droplet there is a progress bar that updates the status using a /events/polling (or something similar) route. could we get that as an api?
2 Answers
You can use the Droplet/SHOW API call to confirm when a droplet has finished creating:


When you first issue the create command the droplet's "status" will be "new".

When the create is finished and the status will change to "active". Until you see the "active" status in the SHOW request the droplet is still being created - which can take longer when droplets are created from snapshots or backup images.
Have another answer? Share your knowledge.