Cannot retrieve a list of databases connected to a subscription via XMP API on Plesk Multi Server

Created:

2017-05-30 08:57:34 UTC

Modified:

2017-08-16 16:46:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot retrieve a list of databases connected to a subscription via XMP API on Plesk Multi Server

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Cannot retrieve a list of databases connected to a subscription via XMP API on Plesk Multi Server:

<packet version="1.6.3.0">
<database>
<get-db>
<filter>
<webspace-name>example.com</webspace-name>
</filter>
</get-db>
</database>
</packet>

It returns a status of 'ok' but none of the databases.

Cause

The request settings are not specified.

Resolution

1. Specify the service node ID in the  XML API request, for example:

<packet version="1.6.8.0">
<request-settings>
<setting>
<name>plesk_rpc_forwarding_to_ext</name>
<value>plesk-multi-server</value>
</setting>
<setting>
<name>ext-plesk-multi-server:node-id</name>
<value>1</value>
</setting>
</request-settings>
<database>
<get-db>
<filter>
<webspace-name>example.com</webspace-name>
</filter>
</get-db>
</database>
</packet>

Note: The node ID can be seen in Plesk > Nodes (place the mouse pointer over on the service node IP).

2. Address the request to the management node:

# curl -kLi -H "Content-Type: text/xml" -H "HTTP_AUTH_LOGIN: admin" -H 'HTTP_AUTH_PASSWD: ******' -H "HTTP_PRETTY_PRINT: TRUE" -d @request.api https://<management_node_ip>:8443/enterprise/control/agent.php

Have more questions? Submit a request
Please sign in to leave a comment.