How to resize a server via the IaaS-API
This tutorial will show you how to resize a server by changing its machine-type.
Prerequisites
Section titled “Prerequisites”- 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 loginSuccessfully logged into STACKIT CLI.$ stackit config set --project-id xxx$ PROJECTID=xxxAll available Machine Types can be found here:
Change the machine-type
Section titled “Change the machine-type”By changing the machine-type the server will have a short downtime.
Resizing a server
$ 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