HostingSubdomainAdd

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

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. “/”).

Request

Field

Type

RegExp

Null?

Description

auth

AuthData

no

Authentication data

subscription

string

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

no

Subscription name

subdomain

string

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

no

full subdomain name (FQDN)

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

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


Last updated on May 04, 2020.
next: HostingSubdomainEdit
previous: HostingPlanGet