我可以使用SoftLayer_Network_Gateway_Vlan::createObject进行关联,但在解除关联时出现错误。为了解除关联,我使用SoftLayer_Network_Gateway_Vlan::deleteObject。
标头似乎有问题,需要标头:
SoftLayer_Network_Gateway_VlanInitParameters发布于 2018-01-26 20:08:46
当您将vlan与createObject关联时,它会返回新关联的VLAN的ID,您需要将该ID用于作为SoftLayer_Network_Gateway_VlanInitParameters的deleteObject方法。
RestFul请求将如下所示:
https://$USER:$APIKEY@api.softlayer.com/rest/v3/SoftLayer_Network_Gateway_Vlan/$ID/deleteObject.json
Note: replace $USER, $APIKEY and $IDhttps://stackoverflow.com/questions/48457641
复制相似问题