~rconradharris/glance/registry_db_migration

« back to all changes in this revision

Viewing changes to doc/source/client.rst

  • Committer: Tarmac
  • Author(s): jaypipes at gmail
  • Date: 2011-01-26 16:01:48 UTC
  • mfrom: (50.1.1 docs)
  • Revision ID: tarmac-20110126160148-4gyuzvbw58penk1c
Adds architecture docs and enables Graphviz sphinx extension. Also cleans up source code formatting in docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
We want to see a list of available virtual machine images that the Glance
37
37
server knows about.
38
38
 
39
 
Using Glance's Client, we can do this using the following code::
 
39
Using Glance's Client, we can do this using the following code
 
40
 
 
41
.. code-block:: python
40
42
 
41
43
  from glance.client import Client
42
44
 
51
53
We want to see more detailed information on available virtual machine images
52
54
that the Glance server knows about.
53
55
 
54
 
Using Glance's Client, we can do this using the following code::
 
56
Using Glance's Client, we can do this using the following code
 
57
 
 
58
.. code-block:: python
55
59
 
56
60
  from glance.client import Client
57
61
 
72
76
for a specific image.
73
77
 
74
78
Continuing the example from above, in order to get metadata about the
75
 
first public image returned, we can use the following code::
 
79
first public image returned, we can use the following code
 
80
 
 
81
.. code-block:: python
76
82
 
77
83
  from glance.client import Client
78
84
 
93
99
for a specific image.
94
100
 
95
101
Continuing the example from above, in order to get both the metadata about the
96
 
first public image returned and its image data, we can use the following code::
 
102
first public image returned and its image data, we can use the following code
 
103
 
 
104
.. code-block:: python
97
105
 
98
106
  from glance.client import Client
99
107
 
222
230
  set to the value `queued`.
223
231
 
224
232
As a complete example, the following code would add a new machine image to
225
 
Glance::
 
233
Glance
 
234
 
 
235
.. code-block:: python
226
236
 
227
237
  from glance.client import Client
228
238