How to create Virtual Machine using REST API?

How to create Virtual Machine using REST API?
I create java wrapper/client for Lxd for my work

In REST API reference I can’t find a way to create Virtual Machine

add the parameter type (to the linked request) which can either be virtual-machine or container and make sure you use a VM image!

1 Like

thank you
can you provide simple example?

There is examples on the interwebs and im longer sure my approach is the most modern, the simple answer is add type key to the docs example provided in your original post

1 Like

I created PR to update the REST API document