• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

domain status is not returned correctly via Plesk API

PlamenK

New Pleskian
Hello folks,

We are trying to take the proper domain state in PPA 11.5 (I hope here is the correct forum about plesk API) via XML-RPC, but if domain is suspended the response returns status '0' (active) instead status '16' (suspend).

request:
===========================
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.0.0">
<domain>
<get>
<filter>
<domain-name>testppaew.de</domain-name>
</filter>
<dataset>
<gen_info/>
<hosting/>
</dataset>
</get>
</domain>
</packet>
=============================

response:
=============================
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.0.0">
<domain>
<get>
<result>
<status>ok</status>
<filter-id>testppaew.de</filter-id>
<id>187</id>
<data>
<gen_info>
<cr_date>2014-03-11</cr_date>
<name>testppaew.de</name>
<ascii-name>testppaew.de</ascii-name>
<status>0</status>
<real_size>217088</real_size>
<owner-id>12</owner-id>
....................................
</data>
</result>
</get>
</domain>
</packet>
==============================================

db status:
==============================================
mysql> select status from domains where name='testppaew.de';
+--------+
| status |
+--------+
| 16 |
+--------+
1 row in set (0.00 sec)
=============================================

plesk status:
=============================================
/usr/local/psa//bin/domain --info testppaew.de | grep status
Domain status: Domain was suspended by administrator.
=============================================

So we should receive via Plesk API value: 16 for domain status in this case ?

Is this some bug in Plesk API/PPA ?
 
I am talking about Plesk API. Hosting environment is PPA, but we are using Plesk API. The same API capabilities are used for Plesk 9.5.4 instances which we have.
 
Back
Top