jimlongo56
Basic Pleskian
Trying to create a SUBDOMAIN with physical hosting.
Sending a POST call to the REST API creates the subdomain but it has no physical hosting attached to it.
The documentation states the choices are as follows
How can I create a subdomain with hosting?
Sending a POST call to the REST API creates the subdomain but it has no physical hosting attached to it.
The documentation states the choices are as follows
Code:
hosting_type:
description: >-
It specifies the hosting type of the created domain. Allowed values:
`virtual` | `standard_forwarding` | `frame_forwarding` | `none`.
Meanings: `virtual` - the domain ships with physical hosting.
How can I create a subdomain with hosting?
Code:
{
"name": "subdomain.mywebsite.website",
"description": "an autodomain",
"hosting_type": "virtual",
"hosting_settings": {
"ftp_login": "test_login",
"ftp_password": "test_pwd"
},
"parent_domain": {
"id": 109,
"name": "mywebsite.website",
"guid": "dace833d-30b6-46a5-84ee-c5ab3ec9965c"
},
"owner_client": {
"id": 90,
"login": "subdomain",
"guid": "fa105651-2ba8-4d94-98f5-fda9d53d9ff7",
"external_id": ""
},
"ipv4": [
"xx.175.208.108"
],
"plan": {
"name": "Default"
}
}
Last edited: