• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Rest API methodes to add and delete DNS records not available after .49 update

Kaspar

API expert
Plesk Guru
Username:

TITLE

Rest API methodes to add and delete DNS records not available after .49 update

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

CentOS 7.9
Plesk 18.0.49

PROBLEM DESCRIPTION

The Change Log for Plesk version .49 states:
It is now possible to add and remove DNS records in a DNS zone via REST API.

However when I navigate to Tool & Settings > Remote API (REST) and open the Plesk REST API Reference and Playground, there are no methodes listed for adding and removing DNS records. There are only methodes for retrieving and updating DNS records (see image below). The methodes aren't listed in the Swagger scheme either.

ioo0NqJ.png


STEPS TO REPRODUCE

Tool & Settings > Remote API (REST) and open the Plesk REST API Reference and Playground.

ACTUAL RESULT

The methodes mentioned in the Change Log are not available.

EXPECTED RESULT

The methodes mentioned in the Change Log to be available.

ANY ADDITIONAL INFORMATION

(DID NOT ANSWER QUESTION)

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Help with sorting out
 
Hi @Kaspar, you're ahead of Plesk. According to developers the new version of the Plesk RESTful API that includes the changes has not yet been published. It will be published very soon, though. I set this report to "resolved", because it is expected that with publication of the update the functions will be there.
 
Perhaps best to remove it from the .49 change log and add it to the release notes for the version on which it's actually published/added?
 
Perhaps best to remove it from the .49 change log and add it to the release notes for the version on which it's actually published/added?
In this case there was a delay in publication. It should have published along with the other components of 18.0.49. For some technical reason that was not possible. It will be published very soon.
 
Kaspar, thank you for the feedback!

I have checked REST API scheme on two my servers, now the new methods are available. I think the rolling out is finished and it makes sense to check availability one more time.

1672998123409.png
 
@AYamshanov, thank for the quick release. Much appreciated.

However, when I try to open the API Playground I now get a blank page with the following error:

Slim Application Error​

A website error has occurred. Sorry for the temporary inconvenience.

There is no further error in the Plesk log.

Edit: this happens when API access is restricted but the request IP hasn't been whitelisted in panel.ini.
 
Last edited:
Back
Top