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

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

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