Atom feed of this document
REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW -  REVIEW - 

 4.1.1. List Versions

VerbURIDescription
GET/ Lists information about all versions of the API.

Normal Response Code(s): 200

Error Response Code(s): badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), unprocessableEntity (422), instanceFault (500), notImplemented (501), serviceUnavailable (503), itemNotFound (404)

This operation lists information about all versions of the API.

The following examples show the List Versions requests:

 

Example 4.1. List Versions Request: XML

GET / HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/xml
Content-Type: application/xml



 

Example 4.2. List Versions Request: JSON

GET / HTTP/1.1
User-Agent: python-example-client
Host: openstack.example.com
X-Auth-Token: 87c6033c-9ff6-405f-943e-2deb73f278b7
Accept: application/json
Content-Type: application/json



This operation does not require a request body.

The following examples show the List Versions responses:

 

Example 4.3. List Versions Response: XML

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 261
Date: Wed, 25 Jan 2012 21:53:04 GMT

<versions xmlns="http://docs.openstack.org/database/api/v1.0">
  <version id="v1.0" status="CURRENT" updated="2012-01-01T00:00:00Z">
    <links>
      <link href="https://openstack.example.com/v1.0/" rel="self"/>
    </links>
  </version>
</versions>

 

Example 4.4. List Versions Response: JSON

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 153
Date: Wed, 25 Jan 2012 21:53:04 GMT

{
    "versions": [
        {
            "id": "v1.0", 
            "links": [
                {
                    "href": "https://openstack.example.com/v1.0/", 
                    "rel": "self"
                }
            ], 
            "status": "CURRENT", 
            "updated": "2012-01-01T00:00:00Z"
        }
    ]
}