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…
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.
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.
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”.
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.