Improve slapconsole documentation

parent 2d04ef4a
...@@ -68,9 +68,21 @@ Examples ...@@ -68,9 +68,21 @@ Examples
===== =====
>>> # Request instance >>> # Request instance
>>> request(kvm, "myuniquekvm") >>> request(kvm, "myuniquekvm")
>>> # Request instance on specific computer
>>> request(kvm, "myotheruniquekvm",
filter_kw={ "computer_guid": "COMP-12345" })
>>> # Request instance, specifying parameters (here nbd_ip and nbd_port)
>>> request(kvm, "mythirduniquekvm",
partition_parameter_kw={"nbd_ip":"2a01:e35:2e27:460:e2cb:4eff:fed9:48dc",
"nbd_port":"1024"})
>>> # Request software installation on owned computer >>> # Request software installation on owned computer
>>> supply(kvm, "mycomputer") >>> supply(kvm, "mycomputer")
>>> # Fetch instance status
>>> # Fetch existing instance status
>>> request(kvm, "myuniquekvm").getState() >>> request(kvm, "myuniquekvm").getState()
>>> # Fetch instance informations on already launched instance >>> # Fetch instance informations on already launched instance
>>> request(kvm, "myuniquekvm").getConnectionParameter("url") >>> request(kvm, "myuniquekvm").getConnectionParameter("url")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment