Virtualmin API create-domain features-from-plan parameter

So I am using a Virtualmin remote API to create a virtual server in Virtualmin.

Here is my URI:


What I am trying to do is to create a virtual server with features of a Bronze plan that I have defined (I have three plans defined: Bronze, Silver, Gold).

I am getting this response, however:

Unknown option Bronze

Adds a new Virtualmin virtual server, with the settings and features
specified on the command line.

virtualmin create-domain --domain
–pass password-for-unix-user |
–passfile password-file
[–parent | --alias |
[–desc description-for-domain]
[–email contact-email]
[–user new-unix-user]
[–default-features] | [–features-from-plan]
[–allocate-ip | --ip virtual.ip.address |
–shared-ip existing.ip.address]
[–allocate-ip6 |
–ip6 virtual.ip.address]
[–dns-ip address | --no-dns-ip]
[–max-doms domains|*]
[–max-aliasdoms domains]
[–max-realdoms domains]
[–max-mailboxes boxes]
[–max-dbs databases]
[–max-aliases aliases]
[–template “name”]
[–plan “name”]
[–prefix username-prefix]
[–db database-name]
[–fwdto email-address]
[–reseller name]
[–mysql-pass password]
[–postgres-pass password]

Exit status: 1

Am I using the API wrong? Please help.

Judging by the output from the Help it would seem that --features-from-plan doesn’t take a parameter and you probably need to add --plan “name”

So your command would be: https://myip:10000/virtual-server/remote.cgi?program=create-domain&