• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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