Project

General

Profile

Task #6752

Updated by Nico Schottelius almost 5 years ago

Idea: we create a REST API that allows users to manage VMs including networks that we LIKE. 

 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. 

 Specification of v1: 

 <pre> 
 Creating/deleting/changing VMs 

 - POST /vm/ 

 Creating/deleting/changing Networks 

 Creating/deleting/changing Storage 


 </pre> 

 Questions to be answered: 

 * How to ignore authentication and authorization? 
 ** Suggestion: we define an "abstract" token 
 ** Can be $random 
 ** Or can be username/realm/token 
 ** Or whatever 

 h2. Request definition 

 h3. Authentication 

 * Client sends a token of undefined form with each request 
 * If there is no token, it is an anonymous request 
 * The API returns http XXX, if the token was not valid for the resource/method 

Back