• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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