• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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