api for event polling

Posted September 9, 2012 3.9k 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?

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.

Submit an Answer
2 answers
You can use the Droplet/SHOW API call to confirm when a droplet has finished creating:[DROPLET_ID]?client_id=[YOUR_CLIENT_ID]&api_key=[YOUR_API_KEY]

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.