Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

failed to resize server using curl comand

I used bellow command to resize server, but nothing print out and server is not resized

curl -s -H "X-Auth-Token: $OS_TOKEN" \
  -H "Content-type: application/json" \
  $OS_COMPUTE_API/servers/$SERVER_ID/action \
  --data '{"resize":{"flavorRef":"5","OS-DCF:diskConfig":"AUTO"}}'
  | python -m json.tool

Anybody know, where is my mistake? Thanks

failed to resize server using curl comand

I used bellow following command to resize server, but nothing print out and server is not resized

curl -s -H "X-Auth-Token: $OS_TOKEN" \
  -H "Content-type: application/json" \
  $OS_COMPUTE_API/servers/$SERVER_ID/action \
  --data '{"resize":{"flavorRef":"5","OS-DCF:diskConfig":"AUTO"}}'
  | python -m json.tool

Anybody know, where is my mistake? Thanks