使用slcli在特定VLAN和子网中创建VSI

时间:2018-08-02 18:30:12

标签: ibm-cloud-infrastructure

大家好,我正在尝试使用slcli创建VSI,我必须还原IMAGE并将此VSI放入特定的专用VLAN中。有人知道我必须在slcli命令中使用正确的参数吗?这是我的命令的例子:为了slcli地方--verify --billing每小时SUSPEND_CLOUD_SERVER SAOPAULO --preset B1_2x8x100 BANDWIDTH_0_GB_2 1_GBPS_PRIVATE_NETWORK_UPLINK 1_IP_ADDRESS MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING REBOOT_REMOTE_CONSOLE --extras“{ “virtualGuests”:[{ “主机名”:“TESTE123 “,” domain“:” xpto.com“}],” imageTemplateId“:1234567}'-复杂类型的SoftLayer_Container_Product_Order_Virtual_Guest

1 个答案:

答案 0 :(得分:0)

您需要添加属性primaryBackendNetworkComponent以指定私有VLAN,如果要指定公共VLAN,则需要添加 primaryNetworkComponent

尝试以下操作:

slcli order place --verify --billing hourly SUSPEND_CLOUD_SERVER SAOPAULO --preset B1_2x8x100 BANDWIDTH_0_GB_2 1_GBPS_PRIVATE_NETWORK_UPLINK 1_IP_ADDRESS MONITORING_HOST_PING NOTIFICATION_EMAIL_AND_TICKET AUTOMATED_NOTIFICATION UNLIMITED_SSL_VPN_USERS_1_PPTP_VPN_USER_PER_ACCOUNT NESSUS_VULNERABILITY_ASSESSMENT_REPORTING REBOOT_REMOTE_CONSOLE --extras '{"virtualGuests": [{"hostname": "TESTE123", "domain": "xpto.com","primaryBackendNetworkComponent":{"networkVlan":{"id":1133322}}}], "imageTemplateId": 1234567 }' --complex-type SoftLayer_Container_Product_Order_Virtual_Guest

一些有用的链接:

SoftLayer API: Order Virtual Server with specific VLAN

Create a SoftLayer virtual guest on a specific subnet