No description
Find a file
2019-08-31 17:28:43 +05:00
.gitignore a 2019-08-28 20:21:41 +05:00
.gitmodules a 2019-08-28 20:21:41 +05:00
common_fields.py a 2019-08-28 20:21:41 +05:00
config.py a 2019-08-31 16:29:12 +05:00
create_image_store.py a 2019-08-28 20:21:41 +05:00
helper.py a 2019-08-28 20:21:41 +05:00
main.py a 2019-08-28 20:21:41 +05:00
Pipfile a 2019-08-30 19:30:59 +05:00
README.md a 2019-08-28 20:21:41 +05:00
schemas.py a 2019-08-31 17:28:43 +05:00
specs_parser.py a 2019-08-28 20:21:41 +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"
	}
}