API Command "create-domain" in 3.76

Hello.

I am developer from HostBill Team (hostbillapp.com) and I'm working on the Virtualmin module.

My problem occurs when I run command "create-domain" via Remote API. The documentation here seems to be not correct since I get different info than placed in the docs. This is part of my command: .../virtual-server/remote.cgi?program=create-domain&domain=konrad.pl&pass=qmqv5fQl&passfile=&xml=1

This is part of returned example of command: virtualmin create-domain --domain domain.name --pass password-for-unix-user | --passfile password-file

I think that problem is caused by "passfile" parameter. API returns error "Missing password". Is there any way to omit this parameter? or can You give example/advice how to use this parameter because this is the only command missing in our module. I tryed to put there some values for ex. passfile=myfile ... but with no success.

Regards. Conrad.K HostBill Developer

Status: 
Closed (fixed)

Comments

You can't really use the passfile parameter when creating a domain, as there's no way to upload a password file to the remote system. Instead just use the pass parameter, with the password as the value.

Does that help? If not, please post the full URL you are calling here, and I will see what parameter is missing or incorrect.

I've tryed to use only pass parameter but it returns error : No virtual server features enabled

This is my URL: https://.............:10000/virtual-server/remote.cgi?program=create-domain&domain=domain.pll&pass=mypass&xml=1

You need to supply the default-features= parameter.

Ok, thank you Jamie. I've used -features-from-plan instead of default features and it work perfectly. The module is ready now ;] Really nice support.

Regards. Conrad.

Automatically closed -- issue fixed for 2 weeks with no activity.