Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DomainEndpoint

Index

Constructors

constructor

Properties

Private Readonly client

client: BegetRequest

Methods

addDirectives

addSubdomainVirtual

  • addSubdomainVirtual(params: AddSubdomain): Promise<number>

addVirtual

  • addVirtual(params: Domain.AddVirtual): Promise<number>
  • Method adds domain.

    Parameters

    • params: Domain.AddVirtual

    Returns Promise<number>

    Returns ID of added domain.

changePhpVersion

  • changePhpVersion(params: Domain.UpdatePhpVersion): Promise<Domain.UpdatePhpVersionResponse>
  • The method changes the php version to the transferred one. Allows you to set and remove cgi mode

    Parameters

    • params: Domain.UpdatePhpVersion

    Returns Promise<Domain.UpdatePhpVersionResponse>

checkDomainToRegister

  • Method returns information about registration possibility for given domain name.

    For a final decision about the possibility of registering the domain three fields must be analyzed: may_be_registered, pay_type и in_system

    Required values:

    • may_be_registered - true
    • pay_type - money or bonus_domain
    • in_system - false

    When making an application for domain registration, you will need to pass the pay_type, which was returned by the method.

    Parameters

    Returns Promise<RegistrationPossibility>

delete

  • delete(params: Pick<Subdomain, "id">): Promise<boolean>
  • Method deletes domain. If the domain was linked to a website, it will be unlinked from it. All subdomains of this domain will be deleted.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution.

deleteSubdomain

  • deleteSubdomain(params: Pick<Subdomain, "id">): Promise<boolean>
  • Method deletes given subdomain.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution.

getDirectives

getList

  • getList(): Promise<Domain[]>

getPhpVersion

  • getPhpVersion(): Promise<Domain.PhpVersion>
  • The method returns information about the current version of php for the domain, whether php is enabled as cgi and php versions available for installation

    Returns Promise<Domain.PhpVersion>

getSubdomainList

getZoneList

  • getZoneList(): Promise<Domain.ZoneList>

Private method

  • method<T>(method: Methods["domain"], data?: object): Promise<T>
  • Type parameters

    • T

    Parameters

    • method: Methods["domain"]
    • Optional data: object

    Returns Promise<T>

removeDirectives

Generated using TypeDoc