Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::disassociateLbHealthMonitorFromPool PHP Méthode

disassociateLbHealthMonitorFromPool() public méthode

Disassociates health monitor from a pool (DELETE /lb/pools/pool-id/health_monitors/healthmonitor-id)
public disassociateLbHealthMonitorFromPool ( string $poolId, string $healthMonitorId ) : boolean
$poolId string The identifier of the LBaaS pool
$healthMonitorId string The identifier of the LBaaS health monitor
Résultat boolean Returns boolean true on success or throws an exception
    public function disassociateLbHealthMonitorFromPool($poolId, $healthMonitorId)
    {
        $result = false;
        $options = array('health_monitor' => array('id' => (string) $healthMonitorId));
        $response = $this->getClient()->call($this->service, sprintf('/lb/pools/%s/health_monitors/%s', $this->escape($poolId), $this->escape($healthMonitorId)), null, 'DELETE');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = true;
        }
        return $result;
    }