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

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

only the IP blocks associated with your server can access yout FTP space - this returns the valid list.
public getBackupFTPAuthorizableBlocks ( $domain ) : object
$domain -> Server that this applies to
Результат object result set throws BadMethodCallException if server is not defined usual handling for 400/404 errors
    public function getBackupFTPAuthorizableBlocks($domain)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/features/backupFTP/authorizableBlocks')->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }