答案 0 :(得分:0)
基本上要取消Softlayer中的资源或设备,您必须取消关联的结算项目,您可以使用以下方法:
http://sldn.softlayer.com/reference/services/SoftLayer_Billing_Item/cancelItem http://sldn.softlayer.com/reference/services/SoftLayer_Billing_Item/cancelService http://sldn.softlayer.com/reference/services/SoftLayer_Billing_Item/cancelServiceOnAnniversaryDate
您知道VLAN可以被取消,因为它有一个关联的billingItem,看看这个restFul示例的objectMask,它将帮助您获取所需的所有数据:
GET http://api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkVlans?objectMask=mask[id,name,vlanNumber,networkSpace,note,primaryRouter[id,hostname,datacenter[id,name,longName]],networkVlanFirewall[id,fullyQualifiedDomainName],attachedNetworkGateway[id,name],attachedNetworkGatewayVlan[bypassFlag],billingItem[id,cancellationDate],type,firewallNetworkComponentCount,firewallGuestNetworkComponentCount]
此致