<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/04/2014 06:28 PM, Mark Vlcek
(mavlcek) wrote:<br>
</div>
<blockquote cite="mid:CF16B7AE.AFF3%25mavlcek@cisco.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hi all,</div>
<div><br>
</div>
<div>I'm using the <a moz-do-not-send="true"
href="http://api.openstack.org/api-ref-identity.html#identity-v2">
Keystone V2 REST API</a> to try to get a list of users and
their IDs but for some reason I keep getting a 404 error in the
JSON response.</div>
<div><br>
</div>
<div>The specific API call I'm trying to make is:</div>
</blockquote>
I'm assuming you are doing this as admin?<br>
<br>
<blockquote cite="mid:CF16B7AE.AFF3%25mavlcek@cisco.com" type="cite">
<div><br>
</div>
<div>GET <a moz-do-not-send="true"
href="http://[hostname]:5000/v2.0/users">http://[hostname]:5000/v2.0/users</a></div>
<div>with the X-Auth-Token properly added to the header.</div>
<div><br>
</div>
<div>The response I'm getting is:</div>
<div><br>
</div>
<div>
<div>{</div>
<div> "error": {</div>
<div> "message": "The resource could not be found.",</div>
<div> "code": 404,</div>
<div> "title": "Not Found"</div>
<div> }</div>
<div>}</div>
</div>
<div><br>
</div>
</blockquote>
Anything in the log? Turn up logging and see what happens.<br>
<br>
Worst case, run with Keystone in an integrated debugger and
intercept the call. You can find the calls in the
identity/routers.py file<br>
<br>
<br>
<blockquote cite="mid:CF16B7AE.AFF3%25mavlcek@cisco.com" type="cite">
<div>
</div>
<div>I see that the documentation says that "name" is another one
of the request parameters, but when I tried adding it as a URL
parameter or in the header I just get invalid responses.</div>
<div><br>
</div>
<div>What am I doing wrong?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Mark</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
</blockquote>
<br>
</body>
</html>