public function setSnapshotProperties($domain, array $properties)
    {
        $domain = (string)$domain;
        if (!$domain)
            throw new BadMethodCallException('Parameter $domain is missing.');
        if (!$properties || !is_array($properties) || count($properties) == 0)
            throw new BadMethodCallException('Parameter $properties must be a non empty array.');
        $qr = '';
        foreach ($properties as $k => $v) {
            $qr .= $k . '=' . $v . '&';
        }
        $qr = substr($qr, 0, strlen($qr) - 1);
        try {
            $r = $this->put('vps/' . $domain . '/snapshot/?' . $qr)->send();
        } catch (\Exception $e) {
            throw new VpsException($e->getMessage(), $e->getCode(),$e);
        }
        return $r;
    }