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

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

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