zoukankan      html  css  js  c++  java
  • 测试URL

    http://localhost:8080/dmonitor-webapi/monitor/vm/342?r=1410331220921&indexes=cpu&indexes=memory&indexes=nettx&indexes=netrx
    
    URL get 传递数组
    
     String[] lcm_state = new String['LCM_INIT','PROLOG','BOOT','RUNNING','MIGRATE','SAVE_STOP','SAVE_SUSPEND','SAVE_MIGRATE',
                    'PROLOG_MIGRATE','PROLOG_RESUME','EPILOG_STOP','EPILOG','SHUTDOWN','CANCEL','FAILURE','CLEANUP_RESUBMIT','UNKNOWN',
                    'HOTPLUG','SHUTDOWN_POWEROFF','BOOT_UNKNOWN','BOOT_POWEROFF','BOOT_SUSPENDED','BOOT_STOPPED','CLEANUP_DELETE','HOTPLUG_SNAPSHOT',
                    'HOTPLUG_NIC','HOTPLUG_SAVEAS','HOTPLUG_SAVEAS_POWEROFF','HOTPLUG_SAVEAS_SUSPENDED','SHUTDOWN_UNDEPLOY','EPILOG_UNDEPLOY','PROLOG_UNDEPLOY'
                    ,'BOOT_UNDEPLOY'];
    
            var state = ['INIT','PENDING','HOLD','ACTIVE','STOPPED','SUSPENDED','DONE','FAILED','POWEROFF','UNDEPLOYED']; 
    
    
    http://192.168.70.149:8080/sample/read?mo= 
    { 
    "engine_requirement": "false", 
    "accesses": { 
    "xmlrpc": { 
    "user": "oneadmin", 
    "password": "oneadmin", 
    "url": "http://192.168.70.77:2633/RPC2" 
    } 
    }, 
    "address": { 
    "port": 2633, 
    "host": "192.168.70.77" 
    }, 
    "name": "30", 
    "type": "opennebula.onehost", 
    "key": "42b66d34-403f-412d-b11d-f7ce71f33f6a" 
    } 
    &indicator=BaseInfo&options={"fresh":0,"timeout":300}} 
    
    
    http://192.168.70.149:8080/sample/read?mo= 
    { 
    "engine_requirement": "false", 
    "accesses": { 
    "xmlrpc": { 
    "user": "oneadmin", 
    "password": "oneadmin", 
    "url": "http://192.168.70.77:2633/RPC2",
    "oid":"342"
    } 
    }, 
    "address": { 
    "port": 2633, 
    "host": "192.168.70.77" 
    }, 
    "name": "30", 
    "type": "opennebula.onevm", 
    "key": "52b66d34-403f-412d-b11d-f7ce71f33f6b" 
    } 
    &indicator=BaseInfo&options={"fresh":0,"timeout":300}}
    
    --返回VmRealCpu
    http://192.168.70.149:8080/sample/read?mo= 
    { 
    "engine_requirement": "false", 
    "accesses": { 
    "xmlrpc": { 
    "user": "oneadmin", 
    "password": "oneadmin", 
    "url": "http://192.168.70.77:2633/RPC2",
    "oid":"342"
    } 
    }, 
    "address": { 
    "port": 2633, 
    "host": "192.168.70.77" 
    }, 
    "name": "30", 
    "type": "opennebula.onevm", 
    "key": "52b66d34-403f-412d-b11d-f7ce71f33f6b" 
    } 
    &indicator=VmRealCpu&options={"fresh":0,"timeout":300}}
    
    --返回VmRealMem
    http://192.168.70.149:8080/sample/read?mo= 
    { 
    "engine_requirement": "false", 
    "accesses": { 
    "xmlrpc": { 
    "user": "oneadmin", 
    "password": "oneadmin", 
    "url": "http://192.168.70.77:2633/RPC2",
    "oid":"342"
    } 
    }, 
    "address": { 
    "port": 2633, 
    "host": "192.168.70.77" 
    }, 
    "name": "30", 
    "type": "opennebula.onevm", 
    "key": "52b66d34-403f-412d-b11d-f7ce71f33f6b" 
    } 
    &indicator=VmRealMem&options={"fresh":0,"timeout":300}}
  • 相关阅读:
    【NOIP 2003】 加分二叉树
    【POJ 1655】 Balancing Act
    【HDU 3613】Best Reward
    【POJ 3461】 Oulipo
    【POJ 2752】 Seek the Name, Seek the Fame
    【POJ 1961】 Period
    【POJ 2406】 Power Strings
    BZOJ3028 食物(生成函数)
    BZOJ5372 PKUSC2018神仙的游戏(NTT)
    BZOJ4836 二元运算(分治FFT)
  • 原文地址:https://www.cnblogs.com/heidsoft/p/3965940.html
Copyright © 2011-2022 走看看