No description
Find a file
Ahmed Bilal 3f406799db Merge branch 'without-ceph' into 'master'
allow ucloud-api to also be able work without ceph i.e use filesystem

See merge request ungleich-public/ucloud-api!2
2019-09-07 12:38:58 +02:00
.gitignore allow ucloud-api to also be able work without ceph i.e use filesystem 2019-09-07 12:38:58 +02:00
.gitmodules Merge into master 2019-09-03 18:01:40 +02:00
common_fields.py Merge into master 2019-09-03 18:01:40 +02:00
config.py allow ucloud-api to also be able work without ceph i.e use filesystem 2019-09-07 12:38:58 +02:00
create_image_store.py Merge into master 2019-09-03 18:01:40 +02:00
helper.py Merge into master 2019-09-03 18:01:40 +02:00
main.py allow ucloud-api to also be able work without ceph i.e use filesystem 2019-09-07 12:38:58 +02:00
Pipfile Merge into master 2019-09-03 18:01:40 +02:00
README.md Merge into master 2019-09-03 18:01:40 +02:00
schemas.py allow ucloud-api to also be able work without ceph i.e use filesystem 2019-09-07 12:38:58 +02:00
specs_parser.py Merge into master 2019-09-03 18:01:40 +02: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"
	}
}