Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creation of VMs via Rest API #6749

Closed
SteffenBarthel opened this issue Mar 25, 2023 · 4 comments
Closed

creation of VMs via Rest API #6749

SteffenBarthel opened this issue Mar 25, 2023 · 4 comments

Comments

@SteffenBarthel
Copy link

Good day,
I would like to be able to create VMs using the Rest API.
As far as I have seen there is no such function.
With kind regards
Steffen Barthel

@olivierlambert
Copy link
Member

olivierlambert commented Mar 25, 2023

Hi,

This is already planned for a future release. Let me double check with @marcungeschikts that's somewhere in the backlog :)

@SteffenBarthel
Copy link
Author

Is there already a release date or a workaround for the moment?

@olivierlambert
Copy link
Member

No, that's why I asked our project manager to take a look. If you have a paid subscription, please open a ticket so we can work together with more details on how to provide you a first version with a higher priority.

@julien-f
Copy link
Member

@SteffenBarthel Yes, in the meantime you can use xo-cli with the internal API method vm.create.

To get some basic information about the expected parameters: xo-cli --list-commands vm.create.

You can also enable the debug mode in xo-web by adding ?query in the query string of the URL, and then look at your browser's console to see which API calls are done by xo-web when creating a VM.

If you need help, post in the community forum: https://xcp-ng.org/forum/category/12/xen-orchestra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants