DeleteNetworkMonitoring.php
DeleteNetworkMonitoring.php
<?php
require_once ('Softlayer/SoapClient.class.php');
$apiUsername = 'set me';
$apiKey = 'set me';
$monitoringDeleteId = 1789133;
$userCustomerNotificiation = Softlayer_SoapClient::getClient('SoftLayer_Network_Monitor_Version1_Query_Host', null, $apiUsername, $apiKey);
$userCustomerNotificiation->setInitParameter($monitoringDeleteId);
try {
$result = $userCustomerNotificiation->deleteObject();
print_r($result);
} catch (Exception $e) {
echo 'Unable to delete the network monitoring: ' . $e->getMessage();
}
?>