public updateLbMember ( string $memberId, array | object $options ) : object | ||
$memberId | string | The Id of the LBaaS member to update |
$options | array | object | Raw options object (It will be json_encoded and passed as is.) |
return | object | Returns LBaaS member object on success or throws an exception otherwise |
public function updateLbMember($memberId, $options)
{
$result = null;
$response = $this->getClient()->call($this->service, sprintf('/lb/members/%s', $this->escape($memberId)), array('_putData' => json_encode(array('member' => $options))), 'PUT');
if ($response->hasError() === false) {
$result = json_decode($response->getContent());
$result = $result->member;
}
return $result;
}