hack4glarus-2019-summer: Issueshttp://localhost:3000/http://localhost:3000/favicon.ico?16699092332019-06-01T11:41:29Zungleich redmine
Redmine Task #6752 (Closed): Create a VMM API and create a reference implementationhttp://localhost:3000/issues/67522019-06-01T11:41:29ZNico Schotteliusnico.schottelius@ungleich.ch
<p>Idea: we create a REST API that allows users to manage VMs including networks that we LIKE.</p>
<p>Background: instead of specifying / coding directly, create something that can be easily portable and can use either kvm/qemu/xen/docker/k8s/bhyve/opennebula/... in the background.</p>
<p>Specification of v1:</p>
<pre>
Creating/deleting/changing VMs
- POST /vm/
Creating/deleting/changing Networks
Creating/deleting/changing Storage
</pre>
<p>Questions to be answered:</p>
<ul>
<li>How to ignore authentication and authorization?
<ul>
<li>Suggestion: we define an "abstract" token</li>
<li>Can be $random</li>
<li>Or can be username/realm/token</li>
<li>Or whatever</li>
</ul></li>
</ul>
<a name="Request-definition"></a>
<h2 >Request definition<a href="#Request-definition" class="wiki-anchor">¶</a></h2>
<a name="Authentication"></a>
<h3 >Authentication<a href="#Authentication" class="wiki-anchor">¶</a></h3>
<ul>
<li>Client sends a token of undefined form with each request</li>
<li>If there is no token, it is an anonymous request</li>
<li>The API returns http XXX, if the token was not valid for the resource/method</li>
</ul>