Permalink
Browse files

Merge pull request #10 from thirteenpixels/master

The example for images.find was wrong
  • Loading branch information...
2 parents 943d4fc + 6e19f26 commit 89c5c6a3fcc0864e6de2a8bc10bcaf93b13a259e @jacobian jacobian committed May 26, 2011
Showing with 14 additions and 14 deletions.
  1. +14 −14 docs/api.rst
View
28 docs/api.rst
@@ -3,7 +3,7 @@ The :mod:`openstack.compute` Python API
.. module:: openstack.compute
:synopsis: A client for the OpenStack Compute API.
-
+
.. currentmodule:: openstack.compute
Usage
@@ -17,28 +17,28 @@ First create an instance of :class:`Compute` with your credentials::
Then call methods on the :class:`Compute` object:
.. class:: Compute
-
+
.. attribute:: backup_schedules
-
+
A :class:`BackupScheduleManager` -- manage automatic backup images.
-
+
.. attribute:: flavors
-
+
A :class:`FlavorManager` -- query available "flavors" (hardware
configurations).
-
+
.. attribute:: images
-
+
An :class:`ImageManager` -- query and create server disk images.
-
+
.. attribute:: ipgroups
-
+
A :class:`IPGroupManager` -- manage shared public IP addresses.
-
+
.. attribute:: servers
-
+
A :class:`ServerManager` -- start, stop, and manage virtual machines.
-
+
.. automethod:: authenticate
For example::
@@ -59,13 +59,13 @@ For example::
[<Image: Windows Server 2008 R2 x64 - MSSQL2K8R2>,...]
>>> fl = compute.flavors.find(ram=512)
- >>> im = compute.images.find('Ubuntu 10.10 (maverick)')
+ >>> im = compute.images.find(name='Ubuntu 10.10 (maverick)')
>>> compute.servers.create("my-server", image=im, flavor=fl)
<Server: my-server>
For more information, see the reference:
.. toctree::
:maxdepth: 2
-
+
ref/index

0 comments on commit 89c5c6a

Please sign in to comment.