• 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.

permission denied : XML RPC : adding database to subscription

H

HirvisimM

Guest
Hello colleagues,

I'm trying to add databases on existent subscription via Plesk (version 11) XML RPC.
For the request were used the creadentials of the customer the target subscription belongs to. As respone I've got „permission denied“.

To create the databases I had used this XML RPC call :

<packet version="1.6.3.0">
<database>
<add-db>
<webspace-id>ID</webspace-id>
<name>NAME</name>
<type>mysql</type>
</add-db>
</database>
</packet>

After a while of trouble shooting I figured out, that the customer (subscription owner) which creadentials were used for XML RPC call, has no „remote_access_interface“ permission activated.

With creadentials of my reseller account (which has "remote_access_interface“ permission) I tried to activate this permission for subscription-customer with following request, which was confirmed by ok-status:

<packet version="1.4.1.2">
<client>
<set>
<filter>
<login>CLIENT_LOGIN</login>
<filter>
<values>
<permissions>
<remote_access_interface>true</remote_access_interface>
</permissions>
</values>
</set>
</client>
</packet>

After above call the permissions were checked again in order to determine that the „remote_access_interface“-permission has been activated.
Unfortunately, I saw that the call had no effect, even though the call was marked by Plesk as successful (ok-status).

Also in backend as reseller I had found no way to activate this right for the customer.

Is this permission necessary for creation of databases via XML RPC ?
If so, how this right can be activated via XML RPC for subscription customer (my reseller account has this permission activated) ?

Is there another way to create databases as _a reseller for subscriptions_ or _as a customer for his own subscription_ ?
I mean another remote accessible API - without need for human interaction.

my desired processing is :
1. creating customer (call successful with creadentials of reseller)
2. creating subscription for customer (call successful with creadentials of reseller)
3. creating databases for subscription (call failed „permission denied.“ with creadentials of customer (subscription owner) )
4. creating db user (not tested yet)

Thank you.
 
Last edited by a moderator:
Back
Top