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

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

* Gets list of templates that can be installed onto server
public getCompatibleTemplates ( $domain )
$domain -> server
    public function getCompatibleTemplates($domain)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/install/compatibleTemplates')->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }