November 23, 2017
Delete network monitoring

The script makes a single call to SoftLayer_Network_Monitor_Version1_Query_Host::deleteObject
method to delete the network monitoring for more information see below

Important manual pages:

Author: SoftLayer Technologies, Inc. <>
import SoftLayer.API
from pprint import pprint as pp

# Your SoftLayer API username and key.
USERNAME = 'set me'
API_KEY = 'set me'

The id of the network monitor you wish to delete
virtualGuestService = client['SoftLayer_Virtual_Guest']
virtualGuestId =  7698842
networkMonitors = virtualGuestService.getNetworkMonitors(id = virtualGuestId)
print (networkMonitors)
idNetworkMonitoringToDelete = 1738019

# Declare the API client
client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
networkMonitorVersionService = client['SoftLayer_Network_Monitor_Version1_Query_Host']

# Send the request to delete the object
    result = networkMonitorVersionService.deleteObject(id=idNetworkMonitoringToDelete)
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to delete the network monitoring "
          % (e.faultCode, e.faultString))


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue