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

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

Get backupFTP ACL for specified ipBlock
public getBackupFTPaccessBlock ( $domain, $ipBlock ) : object
$domain -> Server that this applies to
Результат object result set throws BadMethodCallException if server or ipblock is not defined usual handling for 400/404 errors
    public function getBackupFTPaccessBlock($domain, $ipBlock)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        if (!$ipBlock) {
            throw new BadMethodCallException('Parameter $ipBlock is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/features/backupFTP/access/' . urlencode($ipBlock))->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }