• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Any sample code for web service to access plesk

K

kclo

Guest
Hi all,

I got the Plesk API document for using XML RPC to access Plesk for domain creation and other admin functions. The document include description for the request packet structure. Is there any sample code for using this XML RPC call?

Thanks
 
Yes, I got this document. Suppose I want to write a webpage on my webserver to create a domain through this XML/RPC to plesk server, any sample code for it? The sample code can be for jsp , php, perl.
 
Do you mean this doc? There are a lot of different samples.

Yes. I have this document. If I want to write a web page on my web server(support php, jsp, perl), any sample code to show how to create a domain on Plesk server through xmlrpc.

What is the URL or port number of the XMLRPC server who listen to the request from my XML/RPC client? Is it https://<IP:8443> ? How to handle login authentication in the XML/RPC call.

Sorry that I am new to XML/RPC
 
Hi,

Do you have a sample request packet for changing the domain ftp password?

I only found domain creation packet from the document

Thanks!
 
Hi,

Do you have a sample request packet for changing the domain ftp password?

I only found domain creation packet from the document

Thanks!

If you have not found it in the documentation, it means that this possibility is not present.
 
I found the Set Packet type which can modify domain parameters. I have set the following parameters and it works.

<packet version="1.4.2.0">
<domain>
<set>
<filter>
<domain_name>abc.com</domain_name>
</filter>
<values>
<performance>
<bandwidth>100</bandwidth>
</performance>
</values>
</set>
</domain>

The problem is that the ftp account and password is located under

<hosting>
<vrt_hst>
<ftp_login>abcftp</ftp_login>
<ftp_password>pass</ftp_password>
</vrt_hst>
</hosting>

How can I put them under this "set" packet?
 
What about:

<packet version="1.4.1.0">
<domain>
<add>
<gen_setup>
<name>testdomain.tld</name>
<client_id>1</client_id>
<ip_address>10.55.62.14</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>testftp</ftp_login>
<ftp_password>123qwe</ftp_password>
<ip_address>10.55.62.14</ip_address>
</vrt_hst>
</hosting>
<template-name>test template</template-name>
</add>
</domain>
</packet>
 
I have found out the structure

<packet version="1.4.2.0">
<domain>
<set>
<filter>
<domain_name>abc.com</domain_name>
</filter>
<values>
<hosting>
<vrt_hst>
<ftp_login>bbiiiiii</ftp_login>
<ftp_password>password1</ftp_password>
<ip_address>1.2.3.4</ip_address>
</vrt_hst>
</hosting>
</values>
</set>
</domain>

It needs to be included under <values> and include ip_address as it is required field
</packet>
EOF;
 
Back
Top