Skip to content

Commit

Permalink
F OpenNebula/one#5112: add vmpool.infoset docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González committed Oct 22, 2020
1 parent d878c7f commit adf7d83
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions source/integration/system_interfaces/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ onevm
+----------------------+---------------------------+-------------------+
| list | one.vmpool.infoextended | VM:USE |
+----------------------+---------------------------+-------------------+
| list | one.vmpool.infoset | VM:USE |
+----------------------+---------------------------+-------------------+
| -- | one.vm.monitoring | VM:USE |
+----------------------+---------------------------+-------------------+
| lock | one.vm.lock | VM:MANAGE |
Expand Down Expand Up @@ -2183,6 +2185,31 @@ one.vmpool.infoextended
| OUT | Int | ID of the object that caused the error. |
+------+-----------+-----------------------------------------------------------------------+

one.vmpool.infoset
--------------------------------------------------------------------------------

- **Description**: Retrieves information for a specific set of VMs.
- **Parameters**

+------+-----------+-----------------------------------------------------------------------+
| Type | Data Type | Description |
+======+===========+=======================================================================+
| IN | String | The session string. |
+------+-----------+-----------------------------------------------------------------------+
| IN | String | VMs set. A comma separated list of VMs IDs to be retrieved |
+------+-----------+-----------------------------------------------------------------------+
| IN | Bool | Extended. If true the entire VM will be retrived (similar to |
| | | one.vmpool.infoextended) |
+------+-----------+-----------------------------------------------------------------------+
| OUT | Boolean | true or false whenever is successful or not |
+------+-----------+-----------------------------------------------------------------------+
| OUT | String | Version of the VM Pool containing the set of VMs. |
+------+-----------+-----------------------------------------------------------------------+
| OUT | Int | Error code. |
+------+-----------+-----------------------------------------------------------------------+
| OUT | Int | ID of the object that caused the error. |
+------+-----------+-----------------------------------------------------------------------+

The range can be used to retrieve a subset of the pool, from the 'start' to the 'end' ID. To retrieve the complete pool, use ``(-1, -1)``; to retrieve all the pool from a specific ID to the last one, use ``(<id>, -1)``, and to retrieve the first elements up to an ID, use ``(0, <id>)``.

The state filter can be one of the following:
Expand Down

0 comments on commit adf7d83

Please sign in to comment.