HostingDomainAdd

With this function an additional domain can be assigned to a customer’s web hosting subscription. The return value is the ID of the new data record. If an identical domain already exists in the subscription, its ID is returned.

If the field web is set to NULL, the web space for this domain is disabled. For “normal” (activated) webspace, the field web must be set to an empty string (“”) or to any directory (e.g. “/”).

If the domain is created on DNS servers managed by LiveConfig, the DNS template must be specified in the parameter dnstemplate. Optionally, the serial number can then be given in the serial parameter - otherwise LiveConfig sets this by default in the format YYYYMMDD01.

Request

Field

Type

RegExp

Null?

Description

auth

AuthData

no

Authentication data

subscription

string

^[a-z][a-z0-9_-]{1,63}$

no

Subscription name

domain

string

^[^+<>&%\s]{1,255}$

no

Full domain name

mail

integer

^[01]$

yes

Enable e-mail with this domain? (0 = no, 1 = yes)

web

string

^.{1,255}$

yes

Webspace destination (directory, or URL for redirect)

ipgroup

string

^.{1,50}$

yes

Name of IP group (for webspace)

phpversion

string

^.{1,10}$

yes

PHP version code, e.g. php71

dnstemplate

string

^.{1,255}$

yes

Name of DNS template if this domain should be configured on own nameservers

serial

integer

^\d{0,10}$

yes

Serial number of DNS zone

sslkey

string

yes

private key of SSL/TLS certificate (PEM-encoded)

sslcert

string

yes

SSL-/TLS certificate (PEM-encoded)

sslcachain

string

yes

SSL/TLS intermediate certificates (PEM-encoded)

Response

Field

Type

Null?

Description

id

string

no

Data record ID

webip

string[]

yes

IP addresses where this domain is configured at

The data record ID is customer-specific encrypted.


Last updated on Apr 30, 2020.
next: HostingFtpAdd
previous: HostingDatabaseDelete