Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the REST API CURL command to get a list of available images? (2018)

I am using the following with my token exported, and still nothing is returned. However 2 images are available in the environment (openstack image list).

curl -s -1 -k -X GET "http://localhost:9292/v2/images" \ -H "X-Auth-Token:$TOKEN" \ -H "Accept: application/json" \ -H "Content-Type: application/json"

Please help! Nothing is returned. This is the output I get: {"images": [], "schema": "/v2/schemas/images", "first": "/v2/images"}

What is the REST API CURL command to get a list of available images? (2018)

I am using the following with my token exported, and still nothing is returned. However 2 images are available in the environment (openstack image list).

curl -s -1 -k -X GET "http://localhost:9292/v2/images" \ -H "X-Auth-Token:$TOKEN" \ -H "Accept: application/json" \ -H "Content-Type: application/json"

Please help! Nothing is returned. This is the output I get: {"images": [], "schema": "/v2/schemas/images", "first": "/v2/images"}