• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Custom Migration Plan assignment

H9k

Regular Pleskian
Hi there!
I put some work into a hosting description generator for my Virtualmin systems.
It looks good so far, I am able to migrate domains, databases, users, mailboxes, all good.
However, I would like to automatically assign the subscriptions to a plan.
Now, I actually followed the json schema and put in subscription_info like this.
Code:
      "subscription_info": {
        "locked": false,
        "plans": [
          {
            "guid": "42726525-7185-2cd7-a54d-b7fca6fd44d7",
            "is_addon": false,
            "quantity": "1"
          }
        ],
        "synchronized": true,
        "custom": false
      },

The guid being the subscription plan guid from Plesk.
However, no assignment is made, and the subscription ends up as being custom.

So my question would be: why is the plan not assigned?
Also: the documentation states that I could edit the generated migration-list file to assign plans to the subscriptions. But how? How should an assignment look like? I found no information about this.
The migration-list file looks like so:
Code:
    Customer: username # Real name
            somedomain.tld
            otherdomain.com
            yougettheidea.net
    Customer: otheruser # Real name
            example.com
    # Existing hosting plans not used by any customer
        Plan: Gold
        Plan: Silver

I followed instructions from here: https://docs.plesk.com/en-US/onyx/m...rom-a-linux-server-with-custom-hosting.75604/

Thanks!
 
Last edited:
Hello!

1. In this case migrator gets all information about objects to migrate from hosting description file, that`s why you should describe plan and plan parameters under node "hosting_plans". Maybe, hosting description examples will be usefull for you. They`re placed in %plesk_dir%admin/plib/modules/panel-migrator/backend/conf/samples/custom/

2. Just put plan names before subscriptions names to assign subscription to appropriate plan, you should have something like this:
Plan: plan1
subscription1.plan1
subscription2.plan1
Plan: plan2
subscription1.plan2
 
Thanks Alina, that was not clear to me. Will try it out and see how that goes :)
 
Yep, adding hosting_plans was all I needed to do, assignment works well now :) Thanks!
 
Back
Top