No description
Find a file
Ahmed Bilal bc803d5c08 Merge branch 'wip' into 'master'
Merge into master

1. All source code files share etcd client inside **config.py**
2. Make use of fact that Python 3 classes implicitly inherits from **object** class https://stackoverflow.com/questions/15374857/should-all-python-classes-extend-object/15374884

See merge request ungleich-public/ucloud-api!1
2019-09-03 18:01:40 +02:00
.gitignore Merge into master 2019-09-03 18:01:40 +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 Merge into master 2019-09-03 18:01:40 +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 Merge into master 2019-09-03 18:01:40 +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 Merge into master 2019-09-03 18:01:40 +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"
	}
}