【问题标题】:How to order baremetal without public NICs through SL API如何通过 SL API 订购没有公共 NIC 的裸机
【发布时间】:2018-08-28 07:18:19
【问题描述】:

我们以前按如下方式订购裸机:

server_order = {
    'complexType': 'SoftLayer_Container_Product_Order_Hardware_Server',
    'quantity': 1,
    'hardware':{"primaryNetworkComponent"..., "primaryBackendNetworkComponent"},
    'location': dal05,
    'packageId': xxx
}

server_container = {
    'complexType': 'SoftLayer_Container_Product_Order_Hardware_Server',
    'quantity': 1,
    'hardware': {"primaryNetworkComponent"..., "primaryBackendNetworkComponent"},
    'location': dal05,
    'packageId': xxx,
    'prices': {....}
}

现在我们希望在没有公共 NIC 的情况下订购裸机。除了从hardware 中删除primaryNetworkComponent 之外,我们还需要做什么? 我们还需要 SL 来更改我们正在使用的包吗?还是我们必须换成其他的包?

【问题讨论】:

    标签: ibm-cloud-infrastructure


    【解决方案1】:

    设置硬件的主要和主要后端组件不会定义公共网卡,它们主要用于在配置之前定义 vlan 或子网。

    要仅订购带有私有网卡的服务器,您需要与“port_speed”类别代码属性相关的“私有网络上行链路”的正确项目价格 ID,以及与带宽更相关的“0 GB 带宽分配”的项目价格财产..

    我建议使用对象过滤器仅返回所需的商品价格,例如: 方法 GET

    https://[username]:[apikey]@api.softlayer.com/rest/v3/ SoftLayer_Product_Package/[packageId]/getItemPrices?objectFilter={"itemPrices": {"item":{"keyName":{"operation" :"*=BPS_PRIVATE_NETWORK_UPLINK"}}}}
    
    https://[username]:[apikey]@api.softlayer.com/rest/v3/ SoftLayer_Product_Package/[packageId]/getItemPrices?objectFilter={"itemPrices": {"item":{"keyName":{"operation":"BANDWIDTH_0_GB"}}}}
    

    欲了解更多信息,请参见下文:

    https://softlayer.github.io/article/understanding-ordering/

    【讨论】:

      猜你喜欢
      • 2017-10-03
      • 1970-01-01
      • 2012-05-23
      • 1970-01-01
      • 2011-02-14
      • 1970-01-01
      • 2018-01-16
      • 1970-01-01
      相关资源
      最近更新 更多