change api commands names
This commit is contained in:
parent
ef8ddb0e17
commit
746d3a33d9
2 changed files with 10 additions and 10 deletions
|
@ -155,5 +155,5 @@ def writeclientsdb(clientsdb):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
setencpasswd('a@b.c', '123456')
|
setencpasswd('fqdn', '123456')
|
||||||
|
|
||||||
|
|
|
@ -46,31 +46,31 @@ def selector(fn, req, vmid=0):
|
||||||
clientid = json['clientid']
|
clientid = json['clientid']
|
||||||
body = clientsdb.checkin(clientid)
|
body = clientsdb.checkin(clientid)
|
||||||
|
|
||||||
elif fn == 'create':
|
elif fn == 'vmcreate':
|
||||||
body = plugin.vmcreate(json)
|
body = plugin.vmcreate(json)
|
||||||
|
|
||||||
elif fn == 'status':
|
elif fn == 'vmstatus':
|
||||||
body = plugin.vmstatus(vmid)
|
body = plugin.vmstatus(vmid)
|
||||||
|
|
||||||
elif fn == 'delete':
|
elif fn == 'vmdelete':
|
||||||
body = plugin.vmdelete(vmid)
|
body = plugin.vmdelete(vmid)
|
||||||
|
|
||||||
elif fn == 'suspend':
|
elif fn == 'vmsuspend':
|
||||||
body = plugin.vmsuspend(vmid)
|
body = plugin.vmsuspend(vmid)
|
||||||
|
|
||||||
elif fn == 'resume':
|
elif fn == 'vmresume':
|
||||||
body = plugin.vmresume(vmid)
|
body = plugin.vmresume(vmid)
|
||||||
|
|
||||||
elif fn == 'start':
|
elif fn == 'vmstart':
|
||||||
body = plugin.vmstart(vmid)
|
body = plugin.vmstart(vmid)
|
||||||
|
|
||||||
elif fn == 'shutdown':
|
elif fn == 'vmshutdown':
|
||||||
body = plugin.vmshutdown(vmid)
|
body = plugin.vmshutdown(vmid)
|
||||||
|
|
||||||
elif fn == 'stop':
|
elif fn == 'vmstop':
|
||||||
body = plugin.vmstop(vmid)
|
body = plugin.vmstop(vmid)
|
||||||
|
|
||||||
elif fn == 'vnc':
|
elif fn == 'vmvnc':
|
||||||
body = plugin.vmvnc(vmid)
|
body = plugin.vmvnc(vmid)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue