POST
/
vm
Provision a new VM
curl --request POST \
  --url https://api.cloud.onidel.com/vm \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "vm-hostname",
  "payment_cycle": "hourly",
  "instance_type": "ea645d53-c0e5-406d-8863-9ecd4235be94",
  "location": "Sydney",
  "cpu": 2,
  "ram": 4096,
  "disk": 40,
  "os": 2,
  "team_id": "6484a164-d355-4947-ac2c-e8c09fb24fb0"
}'

Authorizations

Authorization
string
header
required

Provide the value as: Token <your-api-token>

Body

application/json
name
string<string>
Example:

"vm-hostname"

payment_cycle
enum<string>
Available options:
hourly,
monthly,
quarterly,
semiannually,
annually,
biennially,
triennially
instance_type
string<uuid>
Example:

"ea645d53-c0e5-406d-8863-9ecd4235be94"

location
string<string>
Example:

"Sydney"

cpu
integer
Example:

2

ram
integer
Example:

4096

disk
integer
Example:

40

os
integer
Example:

2

team_id
string<uuid>
Example:

"6484a164-d355-4947-ac2c-e8c09fb24fb0"

Response

Successful operation