Hi
I'm trying below given API to connect horizon.
curl -k -X 'POST' -v http://103.247.97.1:5000/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "xyz", "password":"abc"}, "tenantId":"1"}}' -H 'Content-type: application/json'
but getting error :
- About to connect() to 103.247.97.1 port 5000 (#0)
- Trying 103.247.97.1... connected
- Connected to 103.247.97.1 (103.247.97.1) port 5000 (#0) > POST /v2.0/tokens HTTP/1.1 > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: 103.247.97.1:5000 > Accept: / > Content-type: application/json > Content-Length: 124 > < HTTP/1.1 401 Unauthorized < Vary: X-Auth-Token < Content-Type: application/json < Content-Length: 114 < Date: Mon, 25 Nov 2013 11:31:40 GMT <
- Connection #0 to host 103.247.97.1 left intact
- Closing connection #0 {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
Please help me out.
Thanks
Harish