• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

how to assign a user a subscription using the api?

tecnopolis

New Pleskian
Dear friend I am developing in C # an application to manage my server with plesk 10, I know how to create the domain or subscription, I also know how to create the user, so do not do is assign the subscription to the user, someone has an example of a XML package.

I use the next simple

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.0">
<webspace>
<add>
<gen_setup>
<name>example.com</name>
<ip_address>98.90.25.210</ip_address>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>fpt16se4fdf0</value>
</property>
<property>
<name>ftp_password</name>
<value>qweqwe</value>
</property>
<ip_address>98.90.25.210</ip_address>
</vrt_hst>
</hosting>
<plan-name>01 - Plan 500MB</plan-name>
</add>
</webspace>
<user>
<add>
<gen-info>
<login>[email protected]</login>
<passwd>123123</passwd>
<name>Eugene Grin</name>
</gen-info>
<roles>
<name>WebMaster</name>
</roles>
</add>
</user>
</packet>

Really thanks

Oscar Cotamo
Ciudad Tecnópolis
[email protected]
www.ciudadtecnopolis.com
 
Hi dear friend, I use only one customer account, this has created all subscriptions, I make a user for each domain to access the control panel, the user give permission to administer only one subscription or domain, as I have not found assign a domain user using the API.

esoty reading the API documentation http://download1.parallels.net/Ples...ne/plesk-api-rpc/index.htm?fileName=66704.htm and it says nothing about this.

I attach screenshot where you can see better what I do
 

Attachments

  • assign subscriptions.PNG
    assign subscriptions.PNG
    64 KB · Views: 4
Unfortunately, this functionality was missed in API-RPC during 10.4 and 11.0 releases.
It will be available in next panel release.
 
Back
Top