• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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