Stop an instance using REST nova api

Asked by Guilherme Santos Souza

Hello folks,

i'm researching about some way to stop a nova instance using the REST api, by curl commands, but i didn't found any way to do this, someone, knows about?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Yaguang Tang (heut2008) said :
#1

you can refer to the python-novaclient. it is a CLI tool for manageing instances.
curl -H "X-Auth-Token:999888777666" -d "" http://api.nova.com:8774/v1.1/servers/serverid/action ,which serverid is the id of the instance you want to suspend .

Can you help with this problem?

Provide an answer of your own, or ask Guilherme Santos Souza for more information if necessary.

To post a message you must log in.