• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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