GithubHelp home page GithubHelp logo

idcloudhost-vm-resizer's Introduction

Auto VM Resizer

This is UNOFFICIAL Auto VM Resizer for IdCloudhost Console VM. For official API, you can read from this Documentation.

Requirement

PHP 7.3++

Usage

Install required composer package using command

composer install

After that, assign value to .env. If you dont want to use telegram as notification channel, just let it null.

You should change xxx value on BASE_URL to your VM server location, for example Singapore location will be sgp01.

PROCESSOR_MAX = 2
PROCESSOR_MIN = 1
RAM_MAX = 2048
RAM_MIN = 1024
TOKEN = YOUR_TOKEN
VM_ID = YOUR_VM_ID
BASE_URL = "https://api.idcloudhost.com/v1/xxx/"
TELEGRAM_TOKEN =
CHAT_ID =

You can run the script for 2 method, the first one is minimize and maximize.

Minimize will use PROCESSOR_MIN and RAM_MIN, and maximize will use the PROCESSOR_MAX and RAM_MAX for your VM spec.

For example minimize

php index.php minimize

For example maximize

php index.php maximize

Bug

If you find a bug, please open new issue.

idcloudhost-vm-resizer's People

Contributors

tyghaykal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.