lvmstrap: add support for non-partitioned md disks
[ganeti-local] / doc / rapi.rst
index 67e1e6f..f994bd3 100644 (file)
@@ -332,6 +332,69 @@ features:
   Instance reinstall supports body parameters.
 
 
+``/2/modify``
+++++++++++++++++++++++++++++++++++++++++
+
+Modifies cluster parameters.
+
+Supports the following commands: ``PUT``.
+
+``PUT``
+~~~~~~~
+
+Returns a job ID.
+
+Body parameters:
+
+``vg_name`` (string)
+  Volume group name.
+``enabled_hypervisors`` (list)
+  List of enabled hypervisors.
+``hvparams`` (dict)
+  Cluster-wide hypervisor parameter defaults, hypervisor-dependent.
+``beparams`` (dict)
+  Cluster-wide backend parameter defaults.
+``os_hvp`` (dict)
+  Cluster-wide per-OS hypervisor parameter defaults.
+``osparams`` (dict)
+  Dictionary with OS parameters.
+``candidate_pool_size`` (int)
+  Master candidate pool size.
+``uid_pool`` (list)
+  Set UID pool. Must be list of lists describing UID ranges (two items,
+  start and end inclusive).
+``add_uids``
+  Extend UID pool. Must be list of lists describing UID ranges (two
+  items, start and end inclusive) to be added.
+``remove_uids``
+  Shrink UID pool. Must be list of lists describing UID ranges (two
+  items, start and end inclusive) to be removed.
+``maintain_node_health`` (bool)
+  Whether to automatically maintain node health.
+``prealloc_wipe_disks`` (bool)
+  Whether to wipe disks before allocating them to instances.
+``nicparams`` (dict)
+  Cluster-wide NIC parameter defaults.
+``ndparams`` (dict)
+  Cluster-wide node parameter defaults.
+``drbd_helper`` (string)
+  DRBD helper program.
+``default_iallocator`` (string)
+  Default iallocator for cluster.
+``master_netdev`` (string)
+  Master network device.
+``reserved_lvs`` (list)
+  List of reserved LVs (strings).
+``hidden_os`` (list)
+  List of modifications as lists. Each modification must have two items,
+  the operation and the OS name. The operation can be ``add`` or
+  ``remove``.
+``blacklisted_os`` (list)
+  List of modifications as lists. Each modification must have two items,
+  the operation and the OS name. The operation can be ``add`` or
+  ``remove``.
+
+
 ``/2/groups``
 +++++++++++++
 
@@ -420,6 +483,24 @@ Deletes a node group.
 It supports the ``dry-run`` argument.
 
 
+``/2/groups/[group_name]/modify``
++++++++++++++++++++++++++++++++++
+
+Modifies the parameters of a node group.
+
+Supports the following commands: ``PUT``.
+
+``PUT``
+~~~~~~~
+
+Returns a job ID.
+
+Body parameters:
+
+``alloc_policy`` (string)
+  If present, the new allocation policy for the node group.
+
+
 ``/2/groups/[group_name]/rename``
 +++++++++++++++++++++++++++++++++
 
@@ -743,6 +824,26 @@ It supports the following commands: ``PUT``.
 Takes no parameters.
 
 
+``/2/instances/[instance_name]/disk/[disk_index]/grow``
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+Grows one disk of an instance.
+
+Supports the following commands: ``POST``.
+
+``POST``
+~~~~~~~~
+
+Returns a job ID.
+
+Body parameters:
+
+``amount`` (int, required)
+  Amount of disk space to add.
+``wait_for_sync`` (bool)
+  Whether to wait for the disk to synchronize.
+
+
 ``/2/instances/[instance_name]/prepare-export``
 +++++++++++++++++++++++++++++++++++++++++++++++++