• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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