Create VM
This API is used to create a new VM
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
flavor_idstringRequired
Virtual Machine
gpustringOptional
GPU
gpu_amountintegerOptional
image_namestringRequired
namestring · max: 30Required
namespacestringRequired
organization_idstringRequired
passwordstringRequired
project_idstringRequired
storagestringRequired
storage_classstringRequired
urlstringRequired
Data Volume
Responses
200
Successful Response
application/json
codeintegerOptionalExample:
200dataanyOptional
messagestringOptionalExample:
Success403
Forbidden
application/json
post/core/virtual-machine
POST /core/virtual-machine HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 217
{
"flavor_id": "text",
"gpu": "text",
"gpu_amount": 1,
"image_name": "text",
"name": "text",
"namespace": "text",
"organization_id": "text",
"password": "text",
"project_id": "text",
"storage": "text",
"storage_class": "text",
"url": "text"
}{
"code": 200,
"data": null,
"message": "Success"
}Last updated