Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from thirteenpixels/master

The example for images.find was wrong
  • Loading branch information...
commit 89c5c6a3fcc0864e6de2a8bc10bcaf93b13a259e 2 parents 943d4fc + 6e19f26
@jacobian jacobian authored
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,7 +59,7 @@ 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>
@@ -67,5 +67,5 @@ For more information, see the reference:
.. toctree::
:maxdepth: 2
-
+
ref/index
Please sign in to comment.
Something went wrong with that request. Please try again.