admin-api: add admin.vm.CreateDisposable

A call to create new Disposable VM, with _generated_ name
(admin.vm.Create.DispVM require the caller to specify the name).
This commit is contained in:
Marek Marczykowski-Górecki 2017-08-06 20:51:41 +02:00
parent ca595fb54a
commit 9adb507979
No known key found for this signature in database
GPG Key ID: F32894BE9684938A

View File

@ -66,7 +66,7 @@ to set the policy using current mechanism.
| `admin.vm.List` | `dom0|<vm>` | - | - | `<name> class=<class> state=<state>\n` |
| `admin.vm.Create.<class>` | `dom0` | template | `name=<name> label=<label>` | - |
| `admin.vm.CreateInPool.<class>` | `dom0` | template | `name=<name> label=<label> `<br/>`pool=<pool> pool:<volume>=<pool>` | - | either use `pool=` to put all volumes there, <br/>or `pool:<volume>=` for individual volumes - both forms are not allowed at the same time
| `admin.vm.CreateTemplate` | `dom0` | name | `root.img` | - |
| `admin.vm.CreateDisposable` | template | - | - | name | Create new DisposableVM, `template` is any AppVM with `dispvm_allowed` set to True, or `dom0` to use default defined in `default_dispvm` property of calling VM; VM created with this call will be automatically removed after its shutdown; the main difference from `admin.vm.Create.DispVM` is automatic (random) name generation.
| `admin.vm.Remove` | vm | - | - | - |
| `admin.label.List` | `dom0` | - | - | `<property>\n` |
| `admin.label.Create` | `dom0` | label | `0xRRGGBB` | - |