有人可以对以下问题有所了解。
我们使用REST API来路由/取消路由全局IP 以下查询的响应总是“空”,这是一个错误吗?
hxxxs://api.softlayer.com/rest/v3.1/SoftLayer_Network_Subnet_IpAddress_Global/5555555/unroute hxxxs://api.softlayer.com/rest/v3.1/SoftLayer_Network_Subnet_IpAddress_Global/5555555/route {“parameters”:[“55.55.55.55”]}
当路由和unroute请求启动一个事务时,我如何获取事务的状态以确保该过程完全完成?
基于SLDN(http://sldn.softlayer.com/reference/services/SoftLayer_Network_Subnet_IpAddress_Global/getActiveTransaction)页面和REST文章(https://sldn.softlayer.com/article/Rest),请求必须是:
hxxxs://api.softlayer.com/rest/v3/SoftLayer_Network_Subnet_IpAddress_Global/ActiveTransaction.json
但它不起作用。我收到了以下回复:
{"error":"Object does not exist to execute method on. (SoftLayer_Network_Subnet_IpAddress_Global::getActiveTransaction)","code":"SoftLayer_Exception"}
您能帮助我,找到带有所需参数的API方法的完整URL吗?
此致
答案 0 :(得分:0)
unroute和路由方法返回的响应null是一个问题,你可以在软件中提交一个故障单,以解决这个问题。
关于如何获取事务,我能够使用SoftLayer_Network_Subnet_IpAddress_Global :: getActiveTransaction方法获取事务处理,我认为你得到错误,因为你在调用中缺少init参数。你的电话应该是这样的:
GET https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Subnet_IpAddress_Global/$GlobalIPID/getActiveTransaction
Note: replace $GlobalIPID
此致