Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::deleteLbHealthMonitor PHP Method

deleteLbHealthMonitor() public method

Deletes LBaaS health monitor (DELETE /lb/health_monitors/health_monitor-id)
public deleteLbHealthMonitor ( string $healthMonitorId ) : boolean
$healthMonitorId string The ID of the health monitor to delete
return boolean Returns true on success or throws an exception
    public function deleteLbHealthMonitor($healthMonitorId)
    {
        $result = false;
        $response = $this->getClient()->call($this->service, sprintf('/lb/health_monitors/%s', $this->escape($healthMonitorId)), null, 'DELETE');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = true;
        }
        return $result;
    }