No description
3f406799db
allow ucloud-api to also be able work without ceph i.e use filesystem See merge request ungleich-public/ucloud-api!2 |
||
---|---|---|
.gitignore | ||
.gitmodules | ||
common_fields.py | ||
config.py | ||
create_image_store.py | ||
helper.py | ||
main.py | ||
Pipfile | ||
README.md | ||
schemas.py | ||
specs_parser.py |
ucloud-api
Installation
Make sure you have Python >= 3.6 and Pipenv installed.
- Clone the repository and
cd
into it. - 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"
}
}