Comment 6 for bug 1006777

Revision history for this message
Dolph Mathews (dolph) wrote :

Example request/responses are below.

GET http://localhost:35357/v2.0/tokens/e94d61a11ee749ac8d2c2ef76e6ea4df/endpoints
=================================================================================

Accept: application/json
X-Auth-Token: ADMIN

200 OK
======

Status: 200
Content-Length: 273
Content-Location: http://localhost:35357/v2.0/tokens/e94d61a11ee749ac8d2c2ef76e6ea4df/endpoints
Vary: X-Auth-Token
Date: Thu, 06 Sep 2012 14:30:03 GMT
Content-Type: application/json

{
  "endpoints": [
    {
      "name": "Nova",
      "adminURL": "http://admin.openstack/nova",
      "region": "north",
      "internalURL": "http://internal.openstack/nova",
      "type": "compute",
      "id": "8c3426bd730c48f5b59527df3a51b901",
      "publicURL": "http://public.openstack/nova"
    }
  ],
  "endpoints_links": []
}

GET http://localhost:35357/v2.0/tokens/e94d61a11ee749ac8d2c2ef76e6ea4df/endpoints
=================================================================================

Accept: application/xml
X-Auth-Token: ADMIN

200 OK
======

Status: 200
Content-Length: 335
Content-Location: http://localhost:35357/v2.0/tokens/e94d61a11ee749ac8d2c2ef76e6ea4df/endpoints
Vary: X-Auth-Token
Date: Thu, 06 Sep 2012 14:30:05 GMT
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8"?>
<endpoints xmlns="http://docs.openstack.org/identity/api/v2.0">
  <endpoint name="Nova" adminURL="http://admin.openstack/nova" region="north" internalURL="http://internal.openstack/nova" type="compute" id="8c3426bd730c48f5b59527df3a51b901" publicURL="http://public.openstack/nova"/>
</endpoints>