From 376efddf0f2dc777f5b286dab99e41b8a9dc1f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 3 Mar 2017 23:13:14 +0100 Subject: [PATCH] mgmt-api: Adjust storage-related calls --- services/mgmt1.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/services/mgmt1.md b/services/mgmt1.md index 593afac8..62ce550c 100644 --- a/services/mgmt1.md +++ b/services/mgmt1.md @@ -44,6 +44,7 @@ to set the policy using current mechanism. | `mgmt.vm.microphone.Attach` | vm | - | - | - | | `mgmt.vm.microphone.Detach` | vm | - | - | - | | `mgmt.pool.List` | `dom0` | - | - | `\n` | +| `mgmt.pool.ListDrivers` | `dom0` | - | - | ` ...\n` | Properties allowed in `mgmt.pool.Add` | `mgmt.pool.Info` | `dom0` | pool | - | `=\n` | | `mgmt.pool.Add` | `dom0` | pool | `=\n` | - | | `mgmt.pool.Remove` | `dom0` | pool | - | - | @@ -52,13 +53,13 @@ to set the policy using current mechanism. | `mgmt.pool.volume.ListSnapshots` | `dom0` | pool:vid | - | `\n` | | `mgmt.pool.volume.Snapshot` | `dom0` | pool:vid | - | snapshot | | `mgmt.pool.volume.Revert` | `dom0` | pool:vid | snapshot | - | -| `mgmt.pool.volume.Extend` | `dom0` | pool:vid | - | `` | -| `mgmt.vm.volume.List` | vm | -/pool? | - | ? | -| `mgmt.vm.volume.Info` | vm | volume | - | ? | +| `mgmt.pool.volume.Resize` | `dom0` | pool:vid | - | `` | +| `mgmt.vm.volume.List` | vm | - | - | `\n` | `` is per-VM volume name, `` is pool-unique volume id +| `mgmt.vm.volume.Info` | vm | volume | - | `=\n` | | `mgmt.vm.volume.ListSnapshots` | vm | volume | - | snapshot | duplicate of `mgmt.pool.volume.`, but with other call params | | `mgmt.vm.volume.Snapshot` | vm | volume | - | snapshot | id. | | `mgmt.vm.volume.Revert` | vm | volume | snapshot | - | id. | -| `mgmt.vm.volume.Extend` | vm | volume | - | `` | id. | +| `mgmt.vm.volume.Resize` | vm | volume | - | `` | id. | | `mgmt.vm.volume.Attach` | vm | volume | - | - | | `mgmt.vm.volume.Detach` | vm | volume | - | - | | `mgmt.vm.Start` | vm | - | - | - | @@ -70,6 +71,18 @@ to set the policy using current mechanism. | `mgmt.backup.Info` | `dom0` | ? | content? | ? | | `mgmt.backup.Restore` | `dom0` | ? | content | ? | +Volume properties: + - `pool` + - `vid` + - `size` + - `usage` + - `rw` + - `internal` + - `source` + - `save_on_stop` + - `snap_on_start` + + ## Returned messages First byte of a message is a message type. This is 8 bit non-zero integer.