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

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

GET /dedicated/server/{serviceName}/virtualMac/{virtualmac}
public getVmacProperties ( $domain, $vmac )
    public function getVmacProperties($domain, $vmac)
    {
        $domain = (string) $domain;
        $vmac = (string) $vmac;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        if (!$vmac) {
            throw new BadMethodCallException('Parameter $vmac is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/virtualMac/' . $vmac)->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }