问题
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