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

Resolved It is possible to update a Service- or Reseller-Plan on CLI using XML?

Guido De Gobbis

New Pleskian
It is possible to update a Service- or Reseller-Plan on CLI using a XML file?

I tested with

# plesk bin reseller_plan --update "My Reseller Plan" < my_updated_reseller_plan.xml

Response is succsessfully updated, but it doesn't.
 
Thank you for your answer.

In the end, I worked out my own little workflow.
With search and replace I reworked the XML so that I had the parameters for the call.

  1. I Export my reseller plan as XML with
    # plesk bin reseller_plan --xml-info "My Reseller Plan" > my_reseller_plan.xml
  2. Remove lines:
    <reseller-service-plan name="reseller_config_server6_10.10.2018">
    <service-plan-item name="sbnet-user">false</service-plan-item>
    <service-plan-item name="shared">false</service-plan-item>
    <ip-pool><ip-address>...</ip-address>...</ip-pool>
    <service-plan-item name="num_excl_ips">0</service-plan-item>
    <service-plan-item name="num_excl_ipv6s">0</service-plan-item>
    </reseller>
  3. Then replace
    <service-plan-item name=" with -
    "> with [SPACE]
    and finaly replace </service-plan-item> with [EMPTY]
  4. Save as your_global_reseller_plan.txt file an call
    # plesk bin reseller_plan --update "Your reseller plan" -ip-pool add:IPv4,IPv6 `cat your_global_reseller_plan.txt`
So I can set my own global reseller plan and update all my servers with one file, changing adding the IP's in my call. For me it works fine.
 
Back
Top