Closed pizzamax closed 2 years ago
The latest version 2.6.0
should have this option (as --flavor)
$ ibmcloud.exe sl vs upgrade --help
NAME:
upgrade - Upgrade a virtual server instance
USAGE:
C:\Program Files\IBM\Cloud\bin\ibmcloud.exe sl vs upgrade IDENTIFIER [OPTIONS]
Note: Classic infrastructure service automatically reboots the instance once upgrade request is
placed. The instance is halted until the upgrade transaction is completed.
However for Network, no reboot is required.
EXAMPLE:
C:\Program Files\IBM\Cloud\bin\ibmcloud.exe sl vs upgrade 12345678 -c 8 -m 8192 --network 1000
This commands upgrades virtual server instance with ID 12345678 and set number of CPU cores to 8, memory to 8192M, network port speed to 1000 Mbps.
OPTIONS:
-c value, --cpu value Number of CPU cores
--private CPU core will be on a dedicated host server
-m value, --memory value Memory in megabytes
--network value Network port speed in Mbps
--flavor value Flavor key name
-f, --force Force operation without confirmation
--output value Specify output format, only JSON is supported now.
VSIs ordered in flavor cannot be upgraded with --cpu or --memory options but ibmcloud cli does not have option to specify flavor.
reference: https://softlayer-api-python-client.readthedocs.io/en/latest/cli/vs/#vs-upgrade