【问题标题】:unable to find softLayer api to cancel the primary vlans无法找到 softLayer api 来取消主 vlan
【发布时间】:2016-12-21 21:10:00
【问题描述】:

我想取消服务器订购附带的公共/私有 vlan。

请分享softlayer api取消主vlan?

【问题讨论】:

    标签: ibm-cloud-infrastructure


    【解决方案1】:

    Vlan 已购买

    如果您购买了 vlan,则需要取消其中的服务器,然后您可以通过其 billingItem 继续取消 vlan,这将有助于解决此问题的请求:

    从 vlan 及其计费项目中获取信息

    https://$user:$apiKey@api.softlayer.com/rest/v3.1/SoftLayer_Account/getNetworkVlans?objectMask=mask[billingItem.id]
    
    Method: Get
    

    取消 vlan billind 项

    一旦你得到vlan的计费项目标识符,你就可以使用这个请求了:

    https://$user:$apiKey@api.softlayer.com/rest/v3.1/SoftLayer_Billing_Item_Cancellation_Request/createObject
    
    Method: Post
    
    {  
       "parameters":[  
          {  
             "accountId":123123,
             "items":[  
                {  
                   "billingItemId":101726027,
                   "immediateCancellationFlag":true
                }
             ]
          }
       ]
    }
    

    替换:123123 为您的 accountId,101726027 为 vlan 的计费项目标识符


    SoftLayer提供的Vlan

    如果你的服务器的vlan是SoftLayer提供的,当服务器已经取消时,它们会被删除,所以你只需要取消服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多