Zum Inhalt springen

How to resize a server via the IaaS-API

This tutorial will show you how to resize a server by changing its machine-type.

  • Switch over to where you have installed the STACKIT CLI
  • First use the CLI to Authenticate to the API and set the project ID
$ stackit auth login
Successfully logged into STACKIT CLI.
$ stackit config set --project-id xxx
$ PROJECTID=xxx

All available Machine Types can be found here:

Server machine types

By changing the machine-type the server will have a short downtime.

Resizing a server

Terminal window
$ stackit server resize <SERVER_ID> --machine-type <TYPE_NAME>
$ stackit server resize xxxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxxxx --machine-type g2i.4
  • <TYPE_NAME> should be replaced with the name of the new machine-type that should be used
  • <SERVER_ID> should be replaced with the ID of the server you want to resize