You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ahmed Bilal 3f406799db Merge branch 'without-ceph' into 'master' 3 years ago
.gitignore allow ucloud-api to also be able work without ceph i.e use filesystem 3 years ago
.gitmodules Merge into master 3 years ago
Pipfile Merge into master 3 years ago
README.md Merge into master 3 years ago
common_fields.py Merge into master 3 years ago
config.py allow ucloud-api to also be able work without ceph i.e use filesystem 3 years ago
create_image_store.py Merge into master 3 years ago
helper.py Merge into master 3 years ago
main.py allow ucloud-api to also be able work without ceph i.e use filesystem 3 years ago
schemas.py allow ucloud-api to also be able work without ceph i.e use filesystem 3 years ago
specs_parser.py Merge into master 3 years ago

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