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.) |
return | 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;
}