Ovh\Dedicated\Server\ServerClient::getStatisticsRaidVolumePortProperties PHP Метод

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

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsRaidVolumePortProperties ( string $domain, string $unit, string $volume, string $port ) : Array
$domain string
$unit string
$volume string
$port string
Результат Array
    public function getStatisticsRaidVolumePortProperties($domain, $unit, $volume, $port)
    {
        $domain = (string) $domain;
        $unit = (string) $unit;
        $volume = (string) $volume;
        $port = (string) $port;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/statistics/raid/' . $unit . '/volume/' . $volume . '/port/' . $port)->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }