You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

实训相关接口 7.2 kB

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. 1、命令行评测实训
  2. 链接: https://test.educoder.net/tasks/augzqmrx5nw9
  3. 启动命令行接口:https://test-data.educoder.net/api/myshixuns/4yzwfose6q/start.json?game_id=2215157
  4. 返回参数
  5. {
  6. "status": 0,
  7. "message": "success",
  8. "data": {
  9. "host": "172.16.95.1",
  10. "port": "41279",
  11. "link_url": "wss://pre-webssh.educoder.net/ws", # 这个是之前的ws_url
  12. "username": "root",
  13. "password": "XhKb4HwQ2FrnqjiS",
  14. "myshixun_id": 584178,
  15. "webssh_url": "http://172.16.94.254:8890/bridge",
  16. "remainingTime": 1800000,
  17. "mapping_service_url": "https://41280testsvc1.vnc.educoder.net"
  18. }
  19. }
  20. 激活接口:https://test-data.educoder.net/api/myshixuns/4yzwfose6q/active_pod.json?game_id=2215157
  21. 返回参数:
  22. {
  23. "status": 0,
  24. "message": "success",
  25. "data": {
  26. "remaining_time": 1800000
  27. }
  28. }
  29. 重置命令行接口:https://test-data.educoder.net/api/myshixuns/4yzwfose6q/reset_pod.json?game_id=2215157
  30. 返回接口:
  31. {
  32. "status": 0,
  33. "message": "success",
  34. "data": {
  35. "host": "172.16.95.1",
  36. "port": "41279",
  37. "link_url": "wss://pre-webssh.educoder.net/ws",
  38. "username": "root",
  39. "password": "XhKb4HwQ2FrnqjiS",
  40. "myshixun_id": 584178,
  41. "webssh_url": "http://172.16.94.254:8890/bridge",
  42. "remainingTime": 1800000,
  43. "mapping_service_url": "https://41280testsvc1.vnc.educoder.net"
  44. }
  45. }
  46. 2、命令行练习模式
  47. 链接:https://test.educoder.net/tasks/xjf8k5cvglpe
  48. 命令行练习模式链接接口:https://test-data.educoder.net/api/myshixuns/ulzyaw86j7/start.json?game_id=2215160
  49. 返回参数:
  50. {
  51. "status": 0,
  52. "message": "success",
  53. "data": {
  54. "host": "172.16.95.1",
  55. "port": "41281",
  56. "link_url": "wss://pre-webssh.educoder.net/ws",
  57. "username": "root",
  58. "password": "UoeOXal40rkNrOSM",
  59. "myshixun_id": 584179,
  60. "webssh_url": "http://172.16.94.254:8890/bridge",
  61. "remainingTime": 1800000,
  62. "mapping_service_url": null
  63. }
  64. }
  65. 重置命令行接口: https://test-data.educoder.net/api/myshixuns/ulzyaw86j7/reset_pod.json?game_id=2215160
  66. 返回参数:
  67. {
  68. "status": 0,
  69. "message": "success",
  70. "data": {
  71. "host": "172.16.95.1",
  72. "port": "41284",
  73. "link_url": "wss://pre-webssh.educoder.net/ws",
  74. "username": "root",
  75. "password": "4tsMtsXr5hxnrAMg",
  76. "myshixun_id": 584179,
  77. "webssh_url": "http://172.16.94.254:8890/bridge",
  78. "remainingTime": 1800000,
  79. "mapping_service_url": null
  80. }
  81. }
  82. 激活命令行接口:https://test-data.educoder.net/api/myshixuns/ulzyaw86j7/active_pod.json?game_id=2215157
  83. 3、 图形化模式
  84. 链接: https://test.educoder.net/tasks/qjo69pf4yen2
  85. 图形化链接的接口:https://test-data.educoder.net/api/myshixuns/68we3nqvlo/start.json
  86. 返回参数:
  87. {
  88. "status": 0,
  89. "message": "success",
  90. "data": {
  91. "link_url": "https://41285testsvc1.vnc.educoder.net/vnc_lite.html?password=krFgfmEUo1eoJXSp",
  92. "remaining_time": 1800000,
  93. "mapping_service_url": null
  94. }
  95. }
  96. 图形化激活:https://test-data.educoder.net/api/myshixuns/68we3nqvlo/active_pod.json
  97. 返回参数:
  98. {
  99. "status": 0,
  100. "message": "success",
  101. "data": {
  102. "remaining_time": 1800000
  103. }
  104. }
  105. 图形化重置:https://test-data.educoder.net/api/myshixuns/68we3nqvlo/reset_pod.json
  106. 返回参数
  107. {
  108. "status": 0,
  109. "message": "success",
  110. "data": {
  111. "link_url": "https://41286testsvc1.vnc.educoder.net/vnc_lite.html?password=ubUfnZXfTaP2v8FS",
  112. "remaining_time": 1800000,
  113. "mapping_service_url": null
  114. }
  115. }
  116. 4、 jupyter类型
  117. 链接:https://test.educoder.net/tasks/kgilr324mf/jupyter
  118. 获取链接地址:https://test-data.educoder.net/api/myshixuns/kgilr324mf/start.json
  119. 返回参数:
  120. {
  121. "status": 0,
  122. "message": "success",
  123. "data": [{
  124. "name": "",
  125. "link_url": "https://41293testsvc1.vnc.educoder.net/notebooks/data/workspace/myshixun_584124/kgilr324mf20221213161642/01.ipynb?token=YkKtEKzePMHKe8tJ",
  126. "remaining_time": 3600000
  127. }]
  128. }
  129. 激活时间:https://test-data.educoder.net/api/myshixuns/kgilr324mf/active_pod.json
  130. 重置环境:https://test-data.educoder.net/api/myshixuns/kgilr324mf/reset_pod.json
  131. 5. Vscode模式
  132. 链接:https://test.educoder.net/tasks/xzty6mscw4ak
  133. 获取链接接口:https://test-data.educoder.net/api/myshixuns/3cr9h8szfe/start.json
  134. 激活时间接口:https://test-data.educoder.net/api/myshixuns/3cr9h8szfe/active_pod.json
  135. 重置环境接口:https://test-data.educoder.net/api/myshixuns/3cr9h8szfe/reset_pod.json
  136. 6. jupytelab模式
  137. 链接:https://test.educoder.net/tasks/w3ku7g6hlt/jupyter
  138. 获取链接接口:https://test-data.educoder.net/api/myshixuns/w3ku7g6hlt/start.json
  139. 激活时间:https://test-data.educoder.net/api/myshixuns/w3ku7g6hlt/active_pod.json
  140. 重置接口:https://test-data.educoder.net/api/myshixuns/w3ku7g6hlt/reset_pod.json
  141. 7. 容器启动web类型
  142. 链接:https://test.educoder.net/tasks/iumv78glocw3
  143. 获取链接地址:https://test-data.educoder.net/api/myshixuns/gp24f3a5mr/start.json?game_id=2215349
  144. 激活时间:https://test-data.educoder.net/api/myshixuns/gp24f3a5mr/active_pod.json?game_id=2215349
  145. 重置接口:https://test-data.educoder.net/api/myshixuns/gp24f3a5mr/reset_pod.json?game_id=2215349
  146. 8. 阿里云命令行
  147. 链接:https://test.educoder.net/tasks/6vts7iqz5bok
  148. 获取链接地址:https://test-data.educoder.net/api/myshixuns/metj9p8uvg/start.json?position=1(position表示第几个命令行)
  149. 激活时间:https://test-data.educoder.net/api/myshixuns/metj9p8uvg/active_pod.json?position=1
  150. 重置环境:https://test-data.educoder.net/api/myshixuns/metj9p8uvg/reset_pod.json?position=1
  151. 9.算能云(目前测试版还不能测)
  152. 链接:https://test.educoder.net/tasks/nilpzk5f34ya
  153. 获取链接地址:https://test-data.educoder.net/api/myshixuns/9uakizlso8/start.json
  154. 激活时间:https://test-data.educoder.net/api/myshixuns/9uakizlso8/active_pod.json
  155. 重置环境:https://test-data.educoder.net/api/myshixuns/9uakizlso8/reset_pod.json
  156. 10. 交大云
  157. 链接:https://test.educoder.net/tasks/eyugo7923hxf
  158. 获取链接地址:https://test-data.educoder.net/api/myshixuns/ijpzyrtfqv/start.json?position=1 (position命令行的位置)
  159. 激活时间:https://test-data.educoder.net/api/myshixuns/ijpzyrtfqv/active_pod.json?position=1
  160. 重置环境: https://test-data.educoder.net/api/myshixuns/ijpzyrtfqv/reset_pod.json?position=1
  161. 11. windows云主机
  162. 链接:https://test.educoder.net/tasks/erws5kijf9cf
  163. 获取链接地址:https://test-data.educoder.net/api/myshixuns/gqszl4u3ef/start.json
  164. 激活时间:https://test-data.educoder.net/api/myshixuns/gqszl4u3ef/active_pod.json
  165. 重置环境:https://test-data.educoder.net/api/myshixuns/gqszl4u3ef/reset_pod.json
  166. 12.虚拟机
  167. 链接:https://test.educoder.net/tasks/ir8p4ockhygt
  168. 获取链接地址:https://test-data.educoder.net/api/myshixuns/zo85g3lv2y/start.json
  169. 激活时间:https://test-data.educoder.net/api/myshixuns/zo85g3lv2y/active_pod.json
  170. 重置环境:https://test-data.educoder.net/api/myshixuns/zo85g3lv2y/reset_pod.json
  171. 13. 阿里云Linux图形化
  172. 链接:https://test.educoder.net/tasks/bhiv3eyfug56
  173. 获取链接地址:https://test-data.educoder.net/api/myshixuns/zf6hb4pwnj/start.json
  174. 激活时间:https://test-data.educoder.net/api/myshixuns/zf6hb4pwnj/active_pod.json
  175. 重置环境:https://test-data.educoder.net/api/myshixuns/zf6hb4pwnj/reset_pod.json