Revision history [back]

click to hide/show revision 1
initial version

Look at the error you're getting:

Couldn't resolve host 'X-Auth-Token:b13a057539784d6f8a55d9d2d3a115a8'

That's because curl is interpreting your X-auth-token argument as a hostname...because you're missing the -H command line argument preceding that argument. Instead of:

curl -i -X POST -H "Content-Type: application/json" 'X-Auth-Token:b13a057539784d6f8a55d9d2d3a115a8' -d '{"os-stop":null }' http://controller:8774/v2.0/91ca51f6a...

You want:

curl -i -X POST -H "Content-Type: application/json" -H 'X-Auth-Token:b13a057539784d6f8a55d9d2d3a115a8' -d '{"os-stop":null }' http://controller:8774/v2.0/91ca51f6a...

Reformatting this for clarity makes errors like that a little easier to spot:

curl -i -X POST \
  -H "Content-Type: application/json" \
  -H 'X-Auth-Token:b13a057539784d6f8a55d9d2d3a115a8' \
  -d '{"os-stop":null }' \
  http://controller:8774/v2.0/91ca51f6a...