pem.addDomainRequest

This method is supported by Operations starting from version 2.8

This method creates Domain Request. If Domain with the same name exists, DNS Zone of existing Domain is used for Domain Request. Otherwise, a new DNS Zone is created. Method returns a list of DNS Servers, which are responsible for appropriate DNS Zone. These DNS Servers are used by the external system to process Domain registration or transfer.

Note: If Domain Request with the same name exists for Subscription specified, method does not create new Domain Request. It returns properties of existing Domain Request.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

ID of Subscription.

domain_name

string

Name of Domain Request.

The method returns array of strings:

Name

Type

Short Description

name_servers

array

DNS Servers list.

  • ns

string

DNS Server hostname.

zone_created

boolean

Whether the new DNS Zone is created. There are the following options:

  • 0 – The new DNS Zone is created and method returns DNS Servers of new DNS Zone.
  • 1 – DNS Zone already exists and method returns the DNS Servers of existing DNS Zone.