Jump to: navigation, search

Difference between revisions of "Obsolete:GlanceAPISpec"

(Adding Teller-Fetch-Image request)
 
Line 12: Line 12:
  
  
The Parallax URI for an image is going to look something like:
+
Returns
 +
 
 +
Image data as response body.
 +
 
 +
== Parallax ==
 +
 
 +
 
 +
<pre><nowiki>
 +
GET http://parallax.openstack.org/images/<ID>
 +
</nowiki></pre>
 +
 
 +
 
 +
Returns
 +
 
 +
Image metadata encoded in JSON:
  
  
 
<pre><nowiki>
 
<pre><nowiki>
http://parallax.openstack.org/images/<ID>
+
{
 +
"id": 1,
 +
"name": "My Image",
 +
"state": "available",
 +
"public": true,
 +
"metadata": { "mykey": "myvalue },
 +
"files": [ { "location": "swift://user:passwd@acct/container/obj.tar.gz.0", "size": 101 } ]
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 17:42, 1 October 2010

Glance API Specification

Teller

Fetch an Image

GET /images?uri=<Parallax URI for Image>


Returns

Image data as response body.

Parallax

GET http://parallax.openstack.org/images/<ID>


Returns

Image metadata encoded in JSON:


{
"id": 1,
"name": "My Image",
"state": "available",
"public": true,
"metadata": { "mykey": "myvalue },
"files": [ { "location": "swift://user:passwd@acct/container/obj.tar.gz.0", "size": 101 } ]