Getting wrong http response in glance?
On issuing the command "curl -i -X GET -H "Content-Type: application/json" -H "X-Auth-Token: $AUTH_TOKEN" http://
HTTP/1.1 404 Not Found
Content-Length: 154
Content-Type: text/html; charset=UTF-8
X-Openstack-
Date: Tue, 10 Dec 2013 14:43:36 GMT
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
The resource could not be found.<br /><br />
</body>
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2013-12-10
- Last reply:
- 2013-12-12
Yanis Guenane (yanis-guenane) said : | #1 |
Hi Anusha, you are using two differnts version of the API
Your request is done on API v1
http://
When the documentation you are refering to is made on v2 of the API.
In v1 the /images/
Hope it helps,
--
Yanis Guenane
Yanis Guenane (yanis-guenane) said : | #2 |
To do what you are actually trying to accomplish, download the image. Simply run a GET against /images/{id}
curl -i -X GET -H 'X-Auth-Token: YOURTOKEN' -H 'Content-Type: application/
If I have used same version of api also ,404 error got reflected.
curl -i -X GET -H "Content-Type: application/json" -H "X-Auth-Token: $AUTH_TOKEN" http://
HTTP/1.1 404 Not Found
Content-Length: 176
Content-Type: text/html; charset=UTF-8
X-Openstack-
Date: Thu, 12 Dec 2013 11:46:36 GMT
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
An object with the specified identifier was not found.<br /><br />
</body>
Yanis Guenane (yanis-guenane) said : | #4 |
The error message says it all
An object with the specified identifier was not found
Make sure the id you are inputing matchs the id of the image and not owner id by mistake.
The call to /image/
Can you help with this problem?
Provide an answer of your own, or ask anusha rayani for more information if necessary.