• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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