latestOpenAPI 3.0.12026-08-10114644.5 KB

998cc08df103

VMs v2
API v2

Create VM

Create a new virtual machine

post/v2/vms

Request body

vmTypeIdinteger required

Machine model type ID

regionstring required

Region code

namestring required

VM nickname

isSpotboolean required

Spot instance flag: true=spot, false=on-demand

volumeMountPathsobject

Volume mount paths mapping: volumeId -> mountPath. If not specified, default path will be used.

Response

OK