首页 文章

Softlayer api:在下订单VSI时如何指定VLAN选择

提问于
浏览
0

我通常使用Product_Order.placeOrder来订购带有order_config_template参数的VSI . 例如,我可以使用流动的order_config_template来命令vsi:

{
    'dataCenter' : 'sjc03',
    'hourlyBillingFlag' : True,
    'localDiskFlag' : False,
    'maxMemory' : 'RAM_4_GB',
    'startCpus' : 'GUEST_CORES_2',
    'blockDevices' : [{
            'device' : 0,
            'capacity' : 25L
        }
    ],
    'publicBandwidthCapacity' : 'BANDWIDTH_0_GB_2',
    'privateNetworkOnlyFlag' : False,
    'imageTemplateId' : 1666xxxL,
    'networkComponents' : 100,
    'virtualGuests' : [{
            'domain' : 'xx.com',
            'hostname' : 'xx'
        }
    ],
    'imageType' : 'private',
    'quantity' : 1
}.

现在我需要指定VSI的vlan,就像在门户上订购流程一样:VLAN Selection When Order A VSI

所以,我的问题是:a . 哪个api可以帮助获得一个地区的vlan . 湾当我调用Product_Order.placeOrder时,如何指定vlan(将vlan选项设置为order_config_template)?

1 回答

相关问题