【发布时间】:2017-10-30 14:45:02
【问题描述】:
我们希望以编程方式使用风格(例如平衡类型)订购 VSI,但是我们希望从公共图像模板(即 CentOS7-ChangeStable)创建 VSI,而不是使用标准 os_code。从以下文档看来是可能的。
http://softlayer-python.readthedocs.io/en/latest/_modules/SoftLayer/managers/vs.html
但是我尝试了但得到以下错误:
SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_InvalidValue): Invalid value provided for 'blockDevices'. Block devices may not be provided when using an image template.
使用 slcli 也失败并出现不同的错误:
# slcli vs create --hostname testvsi --domain vmonic.local --flavor BL2_4X8X100 --image 1cc8be72-f230-4ab9-b4b2-329c3e747853 --datacenter tok02 --private
This action will incur charges on your account. Continue? [y/N]: y
SoftLayerAPIError(SoftLayer_Exception_Public): Order is missing the following category: Operating System.
请告知 SL API / python API 是否支持使用带有“flavor”的“image_id”。谢谢!
【问题讨论】:
标签: api ibm-cloud-infrastructure