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

HTTP API #9

Open
sameo opened this issue Feb 17, 2022 · 0 comments
Open

HTTP API #9

sameo opened this issue Feb 17, 2022 · 0 comments

Comments

@sameo
Copy link
Contributor

sameo commented Feb 17, 2022

In order to asynchronously control the guest lifecycle, we need to be able to start lumper as a daemon waiting for HTTP formatted API requests on an UNIX socket:

lumper --api-socket /var/run/lumper.sock

would then allow for asynchronously configure, create, start and stop VMs by sending HTTP API requests to the --api-socket socket.

A PUT 'http://localhost/api/v1/vm.create' {....payload...} would for example be used to create and configure a VM, that could then be booted through a PUT 'http://localhost/api/v1/vm.boot'

See for example: https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/vmm/src/api/openapi/cloud-hypervisor.yaml

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

2 participants