Stopping Virtual Machines

Can I stop individual virtual machines in order to avoid billing on your platform? How do I go about doing that?

  • **bold**
  • _italics_
  • `code`
  • ```code block```
  • # Heading 1
  • ## Heading 2
  • > Quote

You can stop billing using the "Stop Server" command via the API or using the Data Center Designer. When using the interface, you select a server, and under the Inspect Panel(located on the top right of your screen), you'll find the Power - Stop option. You can choose to Start/Stop multiple servers and then click Provision in order to apply these changes. This process will "deallocate" the cores and RAM, but the storage will still be running for a fast restore.

Below is an CURL example on stopping the server via the API:


<soapenv:Envelope \
  xmlns:soapenv='' \
  xmlns:ws=''>               \
    <soapenv:Header />           \
   <soapenv:Body> \
      <ws:stopServer> \
         <serverId>server-id</serverId> \
      </ws:stopServer> \
   </soapenv:Body> \
</soapenv:Envelope>              \


ENCODED=`echo -n ${USERNAME}:${PASSWORD} | base64`

curl --data "$XML" --header "Authorization: Basic $ENCODED" --header 'Content-Type: text/xml; charset=utf-8' $URL

For more details about using the API please check this section out: Server Operations.

You could also Start/Stop a server using the Libcloud library. For more details please take a look at this article: How to Correctly Use Stop, Start, Reset on ProfitBricks