Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::updateLbHealthMonitor PHP Метод

updateLbHealthMonitor() публичный Метод

Update LBaaS health monitor (PUT /lb/health_monitors/health_monitors-id)
public updateLbHealthMonitor ( string $healthMonitorId, array | object $options ) : object
$healthMonitorId string The Id of the LBaaS health monitor to update
$options array | object Raw options object (It will be json_encoded and passed as is.)
Результат object Returns LBaaS health monitor object on success or throws an exception otherwise
    public function updateLbHealthMonitor($healthMonitorId, $options)
    {
        $result = null;
        $response = $this->getClient()->call($this->service, sprintf('/lb/health_monitors/%s', $this->escape($healthMonitorId)), array('_putData' => json_encode(array('health_monitor' => $options))), 'PUT');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = $result->health_monitor;
        }
        return $result;
    }