Create_vm
Create VM
Request Body
application/json
int64Optional list of ports to expose externally. If not provided, port 3000 will be exposed on port 443 by default. Pass an empty array to disable external ports. Only ports 8081 and 443 can be configured externally for now. Any target port is allowed.
Whether the api request should wait for the VM to be ready before returning. By default, the VM is considered ready when the serial console is ready for login.
trueHow long to wait for the ready signal before timing out. Defaults to 120 seconds if not provided.
int64Optional working directory for the VM. File system and shell commands will be executed in this directory.
If true, the VM can be recreated if it is deleted. The VM will keep the same ID and be recreated with the same configuration when something tries to start it.
falseResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.freestyle.sh/v1/vms" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"domains": [
"string"
],
"consoleUrl": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}