XML API request failed in Multi-Server: Element 'request-settings': This element is not expected

Created:

2017-06-07 12:46:00 UTC

Modified:

2017-08-08 13:22:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

XML API request failed in Multi-Server: Element 'request-settings': This element is not expected

Symptoms

XML API request failed in Multi-Server:

Parser error: Request is invalid. Error in line 1: Element 'request-settings': This element is not expected.

The following request was used:

<packet> 
<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>
<webspace> <get> <filter>
<name>example.com</name>
</filter>
</get>
</webspace>
</packet>

Cause

dataset is required in this request. For details, visit API-RPC guide.

Resolution

The correct request should be:

<packet> 
<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>
<webspace>
<get>
<filter>
<name>example.com</name>
</filter>
<dataset>
<hosting/>
</dataset>
</get>
</webspace>
</packet>
Have more questions? Submit a request
Please sign in to leave a comment.