Commit Graph

19 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
9e48ca78cc
admin-api: add commands to update selected settings
Generally modifying storage volume/pool settings require removing and
creating the object again. This is not only API limitation, but most of
them really need the object to be recreated (for example storage pool
have most settings related to physical location of the data).
But some properties are safe to change. This applies to
`revisions_to_keep` (both storage pool and volume). Introduce
appropriate API methods for this. Put property name in API call name,
because argument is already used. And also because we don't plan to be
too flexible here - we may need to add one or two more mutable properties,
but definitely we don't want to allow any of them (as explained above).

The same applies to `persistent` option of device. There, in theory
detach+attach should be enough at all times, but in practice domain may
use the device (for example system being started from it -
QubesOS/qubes-issues#3055).
2017-09-02 00:59:26 +02:00
Marek Marczykowski-Górecki
9adb507979
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).
2017-08-06 20:51:41 +02:00
Marek Marczykowski-Górecki
f8474af28d
admin-api: add admin.vm.Stats method
QubesOS/qubes-issues#853
2017-07-27 22:31:23 +02:00
Marek Marczykowski-Górecki
58426f1476
admin-api: add admin.backup.Cancel call 2017-07-27 20:00:04 +02:00
Marek Marczykowski-Górecki
e80b929854
admin-api: minor update
- drop 'internal' volume property
- use persistent=True instead of persistent=yes, as in other bool
  properties
2017-07-27 19:59:19 +02:00
Marek Marczykowski-Górecki
c4f41c2021
admin-api: clarify that CloneFrom/CloneTo tokens are one time use 2017-07-04 02:51:41 +02:00
Marek Marczykowski-Górecki
3923a4c3f6
admin-api: document backup profile 2017-06-27 16:01:57 +02:00
Andrew David Wong
f23bca5bff
Remove old link 2017-06-26 22:12:55 -05:00
Andrew David Wong
c591cabd82
Merge mgmt-design into admin-api 2017-06-26 22:02:29 -05:00
Marek Marczykowski-Górecki
9cd7cee04f
admin-api: remove separate methods for firewall policy
QubesOS/qubes-issues#2869
2017-06-26 06:05:31 +02:00
Marek Marczykowski-Górecki
caf8dfb91a
admin-api: fix default= definition in property.Get
The actual value used there is `True` or `False`
2017-06-25 01:31:38 +02:00
Marek Marczykowski-Górecki
b3b91c8baf
admin-api: clone operation with a token
This way complete operation require policy approval for both source and
destination volumes
2017-06-25 01:31:38 +02:00
Marek Marczykowski-Górecki
b160399f9b
admin-api: add volume.Clone
It is needed for VM clone operation: we have volume.Import, but not
volume.Export - at least not yet. And doing export+import would be very
inefficient, especially on smart storage pools (like LVM).
2017-06-19 00:16:24 +02:00
Marek Marczykowski-Górecki
3d6870656b
admin-api: remove clone operation
Can be achieved using other operations.
2017-06-19 00:08:07 +02:00
Wojtek Porczyk
a43d14339e admin-api: fix html ents 2017-06-14 11:26:07 +02:00
Wojtek Porczyk
feeeb6da8d admin-api: description of the tags 2017-06-14 11:22:52 +02:00
Marek Marczykowski-Górecki
ecbfeb2e73
admin-api update
1. Drop separate admin.vm.microphone.* calls - lets use
admin.vm.device.mic.* for this. Yes, this means microphone cannot
be attached to multiple VMs at the same time (which is regression vs
Qubes 3.2). But this is a good thing from security point of view.

2. Drop admin.backup.Restore - use standard Admin API methods
(admin.vm.Create, admin.vm.volume.Import etc)

Cc: @kalkin
2017-05-23 00:10:10 +02:00
Marek Marczykowski-Górecki
fa79d40d66
admin-api: fix misplaced comment about device assignment options 2017-05-15 14:25:05 +02:00
Marek Marczykowski-Górecki
eb484c383b
Rename Mgmt API to Admin API
QubesOS/qubes-issues#853
2017-05-11 22:39:53 +02:00