From b3b91c8baf75f19d841a99bc680bdcd1cc46f222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 25 Jun 2017 01:28:22 +0200 Subject: [PATCH] admin-api: clone operation with a token This way complete operation require policy approval for both source and destination volumes --- services/admin-api.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/admin-api.md b/services/admin-api.md index 90caab50..8148b934 100644 --- a/services/admin-api.md +++ b/services/admin-api.md @@ -72,6 +72,8 @@ to set the policy using current mechanism. | `admin.pool.volume.Revert` | `dom0` | pool | ` ` | - | | `admin.pool.volume.Resize` | `dom0` | pool | ` ` | - | | `admin.pool.volume.Import` | `dom0` | pool | `\n` | - | +| `admin.pool.volume.CloneFrom` | `dom0` | pool | vid | token, to be used in `admin.vm.volume.CloneTo` | obtain a token to copy volume `vid` in `pool` | +| `admin.pool.volume.CloneTo` | `dom0` | pool | ` ` | - | copy volume pointed by a token to volume `vid` in `pool` | | `admin.vm.volume.List` | vm | - | - | `\n` | `` is per-VM volume name (`root`, `private`, etc), `` is pool-unique volume id | `admin.vm.volume.Info` | vm | volume | - | `=\n` | | `admin.vm.volume.ListSnapshots` | vm | volume | - | snapshot | duplicate of `admin.pool.volume.`, but with other call params | @@ -79,7 +81,8 @@ to set the policy using current mechanism. | `admin.vm.volume.Revert` | vm | volume | snapshot | - | id. | | `admin.vm.volume.Resize` | vm | volume | size_in_bytes | - | id. | | `admin.vm.volume.Import` | vm | volume | raw volume data | - | id. | -| `admin.vm.volume.Clone` | vm | volume | dest VM name | - | copy volume data from `volume` of `vm` to same volume of `dest VM name` | +| `admin.vm.volume.CloneFrom` | vm | volume | - | token, to be used in `admin.vm.volume.CloneTo` | obtain a token to copy `volume` of `vm` | +| `admin.vm.volume.CloneTo` | vm | volume | token, obtained with `admin.vm.volume.CloneFrom` | - | copy volume pointed by a token to `volume` of `vm` | | `admin.vm.Start` | vm | - | - | - | | `admin.vm.Shutdown` | vm | - | - | - | | `admin.vm.Pause` | vm | - | - | - |