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.
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:
I followed instructions from here: https://docs.plesk.com/en-US/onyx/m...rom-a-linux-server-with-custom-hosting.75604/
Thanks!
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: