Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get services endpoints with REST API

Hello guys,

I'm trying to develop an app that uses some of the OpenStack services, so I want it to discover the list of endpoints available. To achieve this, I tried with my own account (not admin) to get them, but it says I'm not allowed. Can someone explain me why this error appears if the endpoint list is available through horizon?

curl -i -g -H 'X-Auth-Token: my-token' http://serveraddress:5000/v3/endpoints

Date: Fri, 07 Oct 2016 15:56:39 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
X-Distribution: Ubuntu
x-openstack-request-id: req-5ce0ab5c-aa3a-49fc-96cf-9987f8c58aa0
Content-Length: 139
Content-Type: application/json

{"error": {"message": "You are not authorized to perform the requested action: identity:list_services", "code": 403, "title": "Forbidden"}}

Thanks in advance.