DigitalOcean is offering the fastest and most convenient cloud technology to help you easily and more efficiently manage your infrastructure so you can get back to coding.
They provide to all users high-performance SSD Hard Drives, flexible API, and the ability to select to nearest data center location.
The DigitalOcean API allows you to manage Droplets and resources inside DigitalOcean cloud in a very simple way using conventional HTTP protocol requests. The endpoints are intuitive and powerful, allowing you to easily make calls to retrieve information or to execute actions.
All of the functionality in the DigitalOcean control panel is also available through the API, allowing you to script the complex actions that your situation requires.
Due to the large number of changes to API v2 we have decided to release it as a beta to collect user feedback. Please note that during this period based on user feedback we may make some large changes which may break compatibility.
What’s New?
- A Truly RESTful API: Developers can now communicate with the API through standard HTTP methods: GET, POST, PUT, DELETE & HEAD.
- Improved Authentication: Users can create and authorise API tokens to provide read-only or read/write access to their account without exposing their credentials.
- OAuth Applications: As the beta progresses, third party application developers will be able to easily create and integrate their applications on top of the new API.
- Slugs: Developers can now use slugs to reference sizes, regions, domains, public SSH keys, and public images in addition to the numeric IDs.
- Pagination: Results are now paginated where applicable, making it easier to interact with large collections such as a domain with hundreds of records.
- Expanded API Coverage: The new API supports IPv6 actions, such as creating a droplet with IPv6 enabled and enabling IPv6 on existing Singapore servers. Furthermore, developers now have the ability to change their Droplet’s kernel, making upgrades using the API much more seamless.
One of the most important update is REST API, which now allow developers to use HTTP for communications. Any tool that is fluent in HTTP can communicate with the API simply by requesting the correct URI. Requests should be made using the HTTPS protocol so that traffic is encrypted. The interface responds to different methods depending on the action required.
And of course new API now supports IPv6. If you are on Singapore server you can enable it on an existing Droplet by sending POST request.
To enable IPv6 networking on an existing Droplet (within a region that has IPv6 available), send a POST request to /v2/droplets/$DROPLET_ID/actions. Set the “type” attribute to enable_ipv6.
More in complete documentation the API documentation will start with a general overview about the design and technology that has been implemented, followed by reference information about specific endpoints.
DigitalOcean – Deploy an SSD cloud server in 55 seconds
Leave a Reply