Skip to main content
POST
Create virtual machine

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <credential> to https://customer-api.mountthor.com. People use the session that mthr login stores (a token starting mt_session_, valid for up to 12 hours). Automation uses a service-account credential (starting mt_sa_v1_, valid for 90 days) from Create credential. Each operation names the permission it needs. Service accounts hold permissions through custom roles, and some operations refuse them; those operations say so.

Body

application/json
image
string
required

An image ref from List images.

machineClass
string
required

A machine class name from List machine classes, for example m4-24g.

name
string

Optional. A name is generated when you omit it.

ports
object[]

Response

The virtual machine was accepted.

virtualMachine
object

A virtual machine.