Full virtualmin API

Hello,

I tried to find the virtualmin API command to change the available features and plugins, like I can do it on the UI in System Settings > Features and Plugins. It seems there is not.
Most of API commands is to manage domain features, but not to manage system features.

Also, because I didn’t find a way to do it by CLI API, I try to find a way to do it by HTTP UI with CURL, but it’s difficult due to the login session and the anti-XSS system that require referer…

Do you know any way ?

Thanks

Hi,

Virtualmin’s API is designed with “web hosting” in mind, and all commands exposed through the CLI API are the same what are exposed through the HTTP API.

What are you trying to do exactly?

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Thanks for reply.

Yes, but I mean many possibilitis on the user interfaces are not available by the API (HTTP or CLI).
So I try to find a way to do them all by the API. And I take the example of the System Settings > Features and Plugins insterface that we cannot use with API.

So do you know any way ?

Thanks

Hi,

I believe the API command you’re looking for is:

set-global-features

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Thanks ! It’s exactly what I need :slight_smile:

But there are other settings that I don’t find, like all the settings in System Settings > Virtualmin Configuration, and for example to change “Default for new domains” > “Domain name style in username” field to “Full domain name”.

Do you have any idea ?

Hi,

It’s true, there isn’t an API command for EVERY feature, but that’s just because the Joe hasn’t gotten around to maknig an API call for everything, and has focused his attention on making a command for the most common, and used features.

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Hi,

Ok thanks it’s clear.

I just found where is stored the configuration, it’s in /etc/webmin/virtual-server/config on Debian.

Do you think I can modify it by hand (by a non-virtualmin/webmin script) without having problem (if I respect correctly the syntax) ?