No description
| etcd3_wrapper@cb2a416a17 | ||
| .gitignore | ||
| .gitmodules | ||
| common_fields.py | ||
| create_image_store.py | ||
| helper.py | ||
| main.py | ||
| Pipfile | ||
| Pipfile.lock | ||
| README.md | ||
| schemas.py | ||
| specs_parser.py | ||
ucloud-api
Installation
Make sure you have Python >= 3.6 and Pipenv installed.
- Clone the repository and
cdinto it. - Run the following commands
pipenv installpipenv shellpython 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"
}
}