CLI - 使用磁盘参数时出错

CLI - Error when disk parameter is in use

所以我在使用 softlayer vs 创建时遇到了问题,我尝试从 public 图像创建一个 vs,但是如果我使用 --disk 选项我得到了一个错误。

命令:

vs create -H g0 -D example.org -c 1 -m 2048 -d ams01 --image 3c289880-2f63-48d3-906d-aaa9a822a6d0 --billing=monthly --vlan-public 1313131 --vlan-private 313131 --disk 25 --test 

错误:

SoftLayerAPIError(SoftLayer_Exception_InvalidValue): Invalid value provided for 'blockDevices'. Block devices may not be provided when using an image template.

如果我不使用 --disk 选项,它会很好地创建实例。

如错误所示,如果您指定的是图像模板,则无法设置磁盘大小。它会自动设置为与图像模板相同的磁盘大小。

" 使用图像模板时可能无法提供块设备"