• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be 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.

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