No description
Find a file
2019-07-18 19:09:26 +05:00
etcd3_wrapper@cb2a416a17 etcd3_wrapper updated 2019-07-04 16:03:57 +05:00
.gitignore app now binds to :: 2019-06-30 21:20:02 +05:00
.gitmodules create_image view added + etcd3_wrapper module added 2019-07-01 23:53:38 +05:00
helper.py implemented add host, authenticate user before performing action of vm 2019-07-18 17:10:17 +05:00
main.py last_heart_beat -> last_hearbeat 2019-07-18 19:09:26 +05:00
Pipfile implemented add host, authenticate user before performing action of vm 2019-07-18 17:10:17 +05:00
Pipfile.lock Shutdown VM, ListUserFiles added. Able to parse units included in specs 2019-07-11 13:34:21 +05:00
README.md v1 code 2019-06-24 15:46:06 +05:00
specs_parser.py implemented add host, authenticate user before performing action of vm 2019-07-18 17:10:17 +05:00

ucloud-api

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Installation

Make sure you have Python >= 3.6 and Pipenv installed.

  1. Clone the repository and cd into it.
  2. Run the following commands
    • pipenv install
    • pipenv shell
    • python main.py

Endpoints

Create VM

To Create VM send a POST request at /vm/create with JSON body. An Example JSON Request Body is shown below

{
	"name": "username",
	"realm": "user realm",
	"seed": "user seed",
	"specs": {
		"cpu": 16,
		"ram": 256,
		"hdd": "2TB",
		"sdd": "256GB"
	}
}