@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('console_type', metavar='<console-type>', help=_('Type of vnc console ("novnc" or "xvpvnc").'))
def do_get_vnc_console(cs, args):
 server = _find_server(cs, args.server)
 data = server.get_vnc_console(args.console_type)
 print_console(cs, data)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'console_type' , metavar = '<console-type>' , help = _ ( 'Type of vnc console ("novnc" or "xvpvnc").' ) ) def do_get_vnc_console ( cs , args ) : server = _find_server ( cs , args . server ) data = server . get_vnc_console ( args . console_type ) print_console ( cs , data )
get a vnc console to a server .