• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Plesk Obsidian API

cipcip

Basic Pleskian
Hi guys,

I want to create subdomains via api, I did this under Onyx and everything works ok.
My question is: What is the most up to date packet for xml api ? Right now I am using: $packet->setAttribute('version', '1.6.8.0');

Is there a newer version ?! In the docs online i see that it refers to 1.5.3.3 something like that.
Also, are the same commands for Onyx working under Obsidian ?

Thank you,
Cristian
 
@EugeneKazakov

I have checked it out, but I cannot figure a way to create subdomains with it.
By using XML API, I have the following packet structure:

Code:
<packet>
  <subdomain>
    <add>
      <parent>example.com</parent>
      <name>subdomain</name>
      <property>
        <name>www_root</name>
        <value>/subdomain.example.com</value>
      </property>
    </add>
  </subdomain>
</packet>

That is what I am interested in.

Thanks,
Cristian
 
Back
Top