Create a virtual machine instance
post
Authorizations
AuthorizationstringRequired
Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."
Body
api_keystringOptional
controller_endpointstringRequired
gpu_countstringRequired
gpu_enabledstring · enumOptionalPossible values:
gpu_namestringRequired
namestringRequired
node_selectorstringRequired
profile_namestringRequired
profile_system_catalogbooleanOptional
project_idstringRequired
service_portstringRequired
service_typestringRequired
target_portstringRequired
usernamestringRequired
vcluster_host_namestringRequired
vcluster_host_namespacestringRequired
vcluster_namestringRequired
vcluster_namespacestringRequired
vm_boot_sizestringRequired
vm_cpu_countstringRequired
vm_imagestringRequired
vm_memory_sizestringRequired
vm_namestringRequired
vm_passwordstringOptional
vm_ssh_public_keystringRequired
vm_userstringRequired
Responses
200
OK
application/json
dataanyOptional
erroranyOptional
messagestringOptional
upstreamanyOptional
400
Bad Request
application/json
403
Forbidden
application/json
post/rafay/v1/virtualmachine/instance/create
POST /rafay/v1/virtualmachine/instance/create HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 577
{
"api_key": "text",
"controller_endpoint": "text",
"gpu_count": "text",
"gpu_enabled": "true",
"gpu_name": "text",
"name": "text",
"node_selector": "text",
"profile_name": "text",
"profile_system_catalog": true,
"project_id": "text",
"service_port": "text",
"service_type": "text",
"target_port": "text",
"username": "text",
"vcluster_host_name": "text",
"vcluster_host_namespace": "text",
"vcluster_name": "text",
"vcluster_namespace": "text",
"vm_boot_size": "text",
"vm_cpu_count": "text",
"vm_image": "text",
"vm_memory_size": "text",
"vm_name": "text",
"vm_password": "text",
"vm_ssh_public_key": "text",
"vm_user": "text"
}{
"data": null,
"error": null,
"message": "text",
"upstream": null
}Last updated