Resolved Rest api breaking change with 18.0.18 #4 ??

wtfred

New Pleskian
Server operating system version
Ubuntu
Plesk version and microupdate number
18.0.78 Update #4
Hello,

I'm using Plesk rest api for years to create domains.
Now, i cannot set anymore php_handler_id, www_root or shell. Maybe also some others things i didn't notice yet.
Domain is created, but those values are not set.

On 18.0.18 #3, is still working, with same json

Code:
{
  "name": "test-api.com",
  "hosting_type": "virtual",
  "hosting_settings": {
    "ftp_login": "test-api",
    "ftp_password": "xxxxx",
    "ssl-redirect": "true",
    "www_root": "httpdocs/current/public",
    "php_handler_id": "plesk-php83-fpm",
    "shell": "/bin/bash",
    "upload_max_filesize": "50M",
    "post_max_size": "50M",
    "memory_limit": "256M",
    "seo-redirect": "non-www"
  },
  "ip_addresses": [
    "212.192.122.46"
  ],
  "plan": {
    "name": "Unlimited"
  }
}

Any information please?
 
Hello,

Thank you for reporting this issue and for the information you provided.

We have confirmed the bug. The ticket ID is EXTPLESK-14068. Our team is currently working on a fix with high priority.
 
The fix has been released and will be delivered to your server within the next 24 hours.

Please let us know whether the issue has been resolved or if it still persists after the update is applied.

Thank you for your cooperation.
 
Hello,
@wtfred , our team released a fix for the issue with EXTPLESK-14068. That update requires no manual actions and should have been already applied. Please do let us know if you encounter any further issues.
 
Hi
I have the same problem, but to me it isnt fixed, i use diferent values, because is a subdomain, it stop working in the update 4 too, before, it worked perfectly
[
"name" => $url,
"hosting_type" => "virtual",
"hosting_settings" => [
"ftp_login" => "user",
"ftp_password" => "password",
"www_root" => "/var/www/vhosts/parent_domain/".$url."/public",
],
"parent_domain" => [
"id" => 1,
"name" => "parent_domain"
],
"ip_addresses" => [
"123.123.123.123"
],
"plan" => [
"name" => "Unlimited"
]
];

My plesk version is 18.0.78 Debian 12.0 1800260617.20
 
Hello @Lematic

My tests indicate some issues with your data. Could you please clarify what exactly is not working as expected so that I can ensure we're on the same page?
 
Yes, everything is working fine, the subdomain is created and its working, but the data on the www_root dont
The root is the default, so, instead of ending in /public.
i can go to the plesk panel -> hosting configuration and add that /public and works, but before that update i didnt need to do it manually, it works with the www_root on the json
 
Hello @Lematic
The fix has been released and will be deployed to your server within the next 24 hours. No manual action is required.

Also, please note that the following parameters:

"hosting_settings" => [
"ftp_login" => "user",
"ftp_password" => "password",
],
"ip_addresses" => [
"123.123.123.123"
],
"plan" => [
"name" => "Unlimited"
]
are used only when creating a webspace and are ignored when creating a subdomain.

Please let me know after 24 hours whether the issue has been resolved on your end.
 
Back
Top