Go to file
ahmadbilalkhalid 272bbcd5c6 enums removed 2019-06-25 15:18:32 +05:00
.gitignore v1 code 2019-06-24 15:46:06 +05:00
Pipfile use etcd3 instead of python-etcd. use uuid instead of increasing number. 2019-06-24 22:14:45 +05:00
Pipfile.lock v1 code 2019-06-24 15:46:06 +05:00
README.md v1 code 2019-06-24 15:46:06 +05:00
helper.py use etcd3 instead of python-etcd. use uuid instead of increasing number. 2019-06-24 22:14:45 +05:00
main.py enums removed 2019-06-25 15:18:32 +05:00

README.md

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"
	}
}