Ask Your Question
0

Stop an instance using REST nova api

asked 2012-01-11 11:30:35 -0500

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-01-11 15:32:50 -0500

heut2008 gravatar image

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 (http://api.nova.com:8774/v1.1/servers...) ,which serverid is the id of the instance you want to suspend .

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-01-11 11:30:35 -0500

Seen: 196 times

Last updated: Jan 11 '12