How do I resize with code

March 31, 2016 1.5k views
System Tools Configuration Management

I am wondering if there is a way to put some sort of command in my server to make it decrease and increase based on the time of the day (or even based on a script that runs).


2 Answers

You can, however this would not be recommended unless you’ve got a multi-server architecture that can adapt. The resize options currently require a reboot.

A few ways to interact with our services would be:

The API which can be accessed directly via curl or via any of a number of pre-built libraries.

Also, yesterday we announced doctl, our command line client for Linux, Windows and Mac. If you specify an API key this can be run from your scripts.

by Mitchell Anicas
In this tutorial, we will teach you how to get started with the DigitalOcean API v2.0. We will show you how to generate personal access tokens, which will be used for authentication, and show a few examples of how the API can be used. The DigitalOcean API allows you to manage Droplets and other resources within the DigitalOcean cloud in a simple, programmatic way using conventional HTTP requests.

Just what I was looking for!!!

Thanks!! :D

Have another answer? Share your knowledge.