无法找到 softLayer api 来取消主 vlan

unable to find softLayer api to cancel the primary vlans

我想取消服务器订购附带的public/private vlan。

请共享软层 api 以取消主 vlan?

购买的 Vlan

如果你购买了vlan,需要取消里面的服务器,然后你可以通过它的billingItem继续取消vlan,有帮助的请求:

获取vlans及其计费项目的信息

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 替换为您的帐户 ID,将 101726027 替换为 vlan 的计费项目标识符


SoftLayer 提供的 Vlan

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