简体   繁体   English

从softlayer slcli创建专用vsi时出错

[英]getting error while creating dedicated vsi from softlayer slcli

I was trying to get the details of dedicated servers by using slcli(version 5.4.4) 我试图通过使用slcli(版本5.4.4)来获取专用服务器的详细信息

and getting following error "SoftLayerAPIError(SoftLayer_Exception_Order_Item_Invalid): Invalid price 64 GB (Dedicated Host) (200375) provided on the order container. Please select a dedicated instance RAM price to order a dedicated instance." 并出现以下错误“ SoftLayerAPIError(SoftLayerAPIException(SoftLayer_Exception_Order_Item_Invalid):订单容器上提供的无效价格64 GB(专用主机)(200375)。请选择专用实例RAM价格以订购专用实例”。)

command which I tried 我尝试过的命令

slcli order place --verify --billing hourly CLOUD_SERVER DALLAS13 \\ RAM_64_UNIT_DEDICATED \\ REBOOT_REMOTE_CONSOLE \\ 1_GBPS_PRIVATE_NETWORK_UPLINKS_DEDICATED_HOSTS \\ BANDWIDTH_0_GB_2 \\ 1_IP_ADDRESS \\ GUEST_DISK_100_GB_LOCAL_DEDICATED_HOST \\ GUEST_DISK_100_GB_LOCAL_DEDICATED_DISK1 \\ GUEST_CORE_16_DEDICATED \\ OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI \\ MONITORING_HOST_PING \\ NOTIFICATION_EMAIL_AND_TICKET \\ AUTOMATED_NOTIFICATION \\ UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT \\ NESSUS_VULNERABILITY_ASSESSMENT_REPORTING \\ --extras '{"virtualGuests": [{"hostname": "test", "domain": "softlayer.com"}]}' \\ --complex-type SoftLayer_Container_Product_Order_Virtual_Guest slcli为了地方--verify每小时--billing CLOUD_SERVER DALLAS13 \\ RAM_64_UNIT_DEDICATED \\ REBOOT_REMOTE_CONSOLE \\ 1_GBPS_PRIVATE_NETWORK_UPLINKS_DEDICATED_HOSTS \\ BANDWIDTH_0_GB_2 \\ 1_IP_ADDRESS \\ GUEST_DISK_100_GB_LOCAL_DEDICATED_HOST \\ GUEST_DISK_100_GB_LOCAL_DEDICATED_DISK1 \\ GUEST_CORE_16_DEDICATED \\ OS_UBUNTU_16_04_LTS_XENIAL_XERUS_MINIMAL_64_BIT_FOR_VSI \\ MONITORING_HOST_PING \\ NOTIFICATION_EMAIL_AND_TICKET \\ AUTOMATED_NOTIFICATION \\ UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT \\ NESSUS_VULNERABILITY_ASSESSMENT_REPORTING \\ --extras“{ “virtualGuests”: [{“ hostname”:“ test”,“ domain”:“ softlayer.com”}]}''--复杂类型的SoftLayer_Container_Product_Order_Virtual_Guest

You got that error because you did not select a Dedicated Host server where your virtual guest will be hosted. 之所以收到该错误,是因为您没有选择将托管虚拟访客的专用主机服务器。

You have to add the hostId in the option extras in front of the object "virtualGuests" the same as this example: 您必须在对象“ virtualGuests”前面的Extras选项中添加hostId,与以下示例相同:

--extras '{"hostId": 12345, "virtualGuests": [{"hostname": "test", "domain": "softlayer.com"}]}'

You can use this slcli command to get the dedicated host available in your account: 您可以使用以下slcli命令来获取帐户中可用的专用主机:

slcli dedicatedhost list

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM