These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for help me !!!!!about Virtualmin API on the new forum.
I'm developing Virtualmin (GPL) billing system,Encountered a problem, in Command Line Help
Deletes an existing Virtualmin virtual server and all sub-servers, mailboxes and alias domains.
virtualmin delete-domain [--domain domain.name]* [--user username]* [--only] This means that the remote API to delete a virtual server, must be added to domin and username parameters
The problem here, If my Customers Changed the domin Platform through Virtualmin Not in the billing system,now how can i know the new domain.
If I am still using the old name will go wrong
Couldn't you list the existing domains and compare/update what you have in the system?
virtualmin list-domains --multiline
Howdy,
Yeah, the billing system may not be able to store the domain name... instead, if you only keep track of the username, you can then query Virtualmin using the API in order to determine what domains belong to that user whenever displaying the domains for that user.
Then, if the domain changes, no problem -- next time the page is refreshed, it'll be showing the correct domains.
-Eric
yes , i see now ,i can only use username parameters
delete-domain&user=username
that all virtual server will be deleted When the user's name = username
I've tested, and can be used normally
thanks!