Comment 2 for bug 1631480

Revision history for this message
Matt Riedemann (mriedem) wrote :

To reiterate, this is our network endpoint public URL: http://localhost:5000/network

And when I make a request to that I get this:

(jumpgate)user@xubuntu:~/git/python-openstacksdk$ curl -g -H "X-Auth-Token: $OS_TOKEN" http://localhost:5000/network | json_pp
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 125 100 125 0 0 15636 0 --:--:-- --:--:-- --:--:-- 17857
{
   "versions" : [
      {
         "links" : [
            {
               "href" : "http://localhost:5000/network/v2.0",
               "rel" : "self"
            }
         ],
         "id" : "v2.0",
         "status" : "CURRENT"
      }
   ]
}

And when I make a request to http://localhost:5000/network/v2.0 I get this:

(jumpgate)user@xubuntu:~/git/python-openstacksdk$ curl -g -H "X-Auth-Token: $OS_TOKEN" http://localhost:5000/network/v2.0 | json_pp
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 272 100 272 0 0 32893 0 --:--:-- --:--:-- --:--:-- 38857
{
   "resources" : [
      {
         "links" : [
            {
               "rel" : "self",
               "href" : "http://localhost:5000/network/v2.0/subnets"
            }
         ],
         "name" : "subnet",
         "collection" : "subnets"
      },
      {
         "collection" : "networks",
         "name" : "network",
         "links" : [
            {
               "rel" : "self",
               "href" : "http://localhost:5000/network/v2.0/networks"
            }
         ]
      }
   ]
}