URL | POST {{basepath}}/hosting |
---|---|
Category | Hosting |
This allows for the creation of a hosting object. the request body should contain a HostingCreateRequest object.
Returns a HostingCreateResponse object.
{
"package": "{{package}}",
"domain": "{{hosting_domain}}",
"crmId": "crm-1",
"email": "john@metaregistrar.com",
"password": "tKestHJ#$1234G",
"ftpPassword": "tKestHJ#$1234G",
"metadata": {
"mdhostingid": 1,
"blorp": "21341234",
"serverType": "smoketest"
}
}
POST {{basepath}}/hosting
{
"package": "basic",
"domain": "example-2021-8-9-15-57-15.com",
"email": "test@example.com",
"password": "tKestHJ#$1234G",
"ftpPassword": "tKestHJ#$1234G"
}
202 Accepted
{
"responseId": "2_69e0a16be981dd1dc25e700187f2490e3b9ca686",
"status": "pending",
"message": "Your Hosting is pending provisioning",
"hosting": {
"identifier": "2_f4d0be28ec3ec1d32201936dfca90b31b3c15d57",
"status": "provisioning",
"domain": "example-2021-8-9-15-57-15.com",
"info": {
"serverPlan": "unknown",
"pleskUser": "unknown",
"pleskFtpUser": "unknown",
"pleskClientId": 0,
"pleskHostingId": 0,
"activeDomains": 0,
"subdomains": 0,
"diskspace": 0,
"databases": 0,
"traffic": 0,
"trafficPrevDay": 0
},
"options": [
{
"name": "letsEncrypt",
"value": "disabled",
"arguments": []
}
],
"package": {
"packageId": "basic",
"type": "plesk",
"status": "active",
"spec": [
{
"type": "diskspace",
"value": "1000"
}
],
"created": 1626272615,
"modified": 1626272619
},
"server": {
"identifier": "plesktest",
"hostname": "plesktest.yourdomainprovider.net",
"type": "plesk",
"status": "active",
"ips": [
{
"address": "213.249.71.10",
"version": 4
},
{
"address": "2a01:448:1005::10",
"version": 6
}
],
"availablePackages": [
"basic",
"pro"
],
"usage": 0,
"capacity": 20,
"created": 1626259040,
"modified": 1626259045
},
"suspended": false,
"renewalDay": 9,
"period": 1,
"openJobCount": 1,
"servicePeriod": 7,
"serviceStatus": "active",
"serviceRenewalMonth": 8,
"created": 1628517436,
"modified": 1628517436
}
}