Does Libcloud work with DigitalOcean's v2 API?

  • Posted August 29, 2014

I was using Apache Libcloud with v1 of the DigitalOcean API before. But I see that v1 is now deprecated.

Does it work with v2? At least for creating droplets?

Note: I looked through the libcloud repo and docs for info about this, but I didn’t find anything.



Since trunk (to be libcloud v0.18.0), the driver uses new API v2.0 by default.

What is the status of Libcloud support for DigitalOcean API v2 now? This link claims v2 of DO API is supported now (apache-libcloud==0.17.0) and is supposed to become the default in the next release.

However if I try the v2 example from the above link:

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

cls = get_driver(Provider.DIGITAL_OCEAN)

driver = cls('access token', api_version='v2')


I get “Access Denied”. The same access token with a curl request works fine.

Thanks for any update!

Hi coffeepot,

I assume no staffer got back to you on this one. I assume by now you’ve found the answer.

The answer is no. Apache Libcloud library only works with the older v1 API right now – Which is problematic as I have run into several issues with that.

cheers James

Submit an 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.

No, Libcloud has not been ported to version 2 of the API yet. For the time being, you can still use version 1. You can get your credentials for v1 here.