SoftLayer API: How to get advanced monitoring and firewall in the account from order billingId

雨燕双飞 提交于 2019-12-25 14:26:00

问题


After ordering Advanced Monitoring - Premium package using SoftLayer API "SoftLayer_Container_Product_Order_Monitoring_Package"

and Firewall on Vlans with SoftLayer API "SoftLayer_Container_Product_Order_Network_Protection_Firewall_Dedicated",

I can get the SoftLayer_Billing_Item id value from each order.

How can I retrieve the monitoring device and the firewall device that I ordered on the SoftLayer_Account using Billing_Item id ?

I looked up methods on SoftLayer_Account, there doesn't seem have direct methods to get monitoring or firewall.

Thanks.


回答1:


The monitoring agents are in a bare metal server or a VSI to get the monitorings you need to call the getMonitoring Agents

http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/getMonitoringAgents http://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/getMonitoringAgents

The dedicated firewall is in the vlan you can get that calling the method http://sldn.softlayer.com/reference/services/SoftLayer_Network_Vlan/getFirewallInterfaces

there is no a method to get the objects using the billingItemId you need first get the objects, get its billingItemId and verify if this billingItem matches with the one you got before

Regards



来源:https://stackoverflow.com/questions/34388803/softlayer-api-how-to-get-advanced-monitoring-and-firewall-in-the-account-from-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!