Question

Does Libcloud work with DigitalOcean's v2 API?

Posted August 29, 2014 4.1k views

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.

3 comments
  • 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

  • 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')
    
    driver.list_sizes()
    

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

    Thanks for any update!

  • From https://libcloud.readthedocs.org/en/latest/compute/drivers/digital_ocean.html

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

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.

×
1 answer

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.

Submit an Answer