Submitted by nabab on Tue, 03/22/2016 - 17:35 Pro Licensee
The function modify-dns as described here: https://www.virtualmin.com/documentation/developer/cli/modify_dns Is not available from the http API. That would be great if it was. :) Thanks!
Status:
Closed (fixed)
Comments
Submitted by andreychek on Tue, 03/22/2016 - 18:28 Comment #1
Howdy -- hmm, does that work properly when called from the command line (with the "virtualmin" command), just not from the http API?
Submitted by JamieCameron on Tue, 03/22/2016 - 21:22 Comment #2
It should be available from both the command-line and remote APIs.
Submitted by nabab on Wed, 03/23/2016 - 06:18 Pro Licensee Comment #3
Hi there, I am very sorry as it is in fact available from both BUT I thought so because it is not listed in list_commands when done through http.
After some tries here is a proper bug about it:
Try
virtualmin get-command --command get-dns
Works fine!And now
virtualmin get-command --command modify-dns
I getCannot parse flag type [value
I created a PHP class connecting virtualmin API , which checks query parameters thanks to the infos given by
list-commands
.Unfortunately it won't work with modify-dns as it's not listed.
Submitted by JamieCameron on Wed, 03/23/2016 - 22:37 Comment #4
Ok, I see the cause of this - it will be fixed in the next Virtualmin release.
Submitted by JamieCameron on Wed, 03/23/2016 - 22:37 Comment #5