Virtual Machine
Endpoints for virtual machine management across different cloud providers like Azure, AWS, and Kraud.Cloud. This includes creating, deleting, updating, and retrieving VM details
It is important to note that the password and shh keys for remote access are stored in Vault.
Create virtual machine
POST
{{BASE_URL}}/api/virtual-machines
Virtual Machine Creation. Currently, only ( Kraud.Cloud, Azure, AWS ) can be created.
Headers
Authorization*
String
Bearer Token
Request Body
data*
Object
Below is a screenshot of the Vault UI. This shows the path to the keys. From this path you can get the keys to remotely connect to the VM.
Below is an example of how to make this request. {{VAULT_URL}}/v1/enclaive-static/data/{teamId}/user/root?version=0
Get virtual machines
GET
{{BASE_URL}}/api/teams/{team}/projects/{project}/virtual-machines
Get all active virtual machines for a specific project.
Path Parameters
team*
String
Team ID
project*
String
Project ID
Headers
Authorization*
String
Bearer Token
Get virtual machine
GET
{{BASE_URL}}/api/virtual-machines/{id}
Get a specific virtual machine by unique id.
Path Parameters
id*
String
Virtual machine ID
Headers
Authorization*
String
Bearer Token
Stop virtual machine
PUT
{{BASE_URL}}/api/virtual-machines/{id}/stop
Stop virtual machine by unique id.
Path Parameters
id*
String
Virtual machine ID
Headers
Authorization*
String
Bearer Token
Start virtual machine
PUT
{{BASE_URL}}/api/virtual-machines/{id}/start
Start virtual machine by unique id.
Path Parameters
id*
String
Virtual machine ID
Headers
Authorization*
String
Bearer Token
Delete virtual machine
DELETE
{{BASE_URL}}/api/virtual-machines/{id}
Delete a specific virtual machine by unique id.
Path Parameters
id*
String
Virtual machine ID
Headers
Authorization*
String
Bearer Token
Last updated