Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
E
evsuits
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
OpsTeam
evsuits
Commits
3dd54891
提交
3dd54891
authored
10月 31, 2019
作者:
blu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feature: reverse debug tunnel
上级
ba72317f
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
31 行增加
和
11 行删除
+31
-11
evcloudsvc-cloud-api.md
opencv-motion-detect/evcloudsvc-cloud-api.md
+31
-11
没有找到文件。
opencv-motion-detect/evcloudsvc-cloud-api.md
浏览文件 @
3dd54891
...
@@ -237,18 +237,38 @@ get value for specified key in cloud db. keys list is queried by /keys api
...
@@ -237,18 +237,38 @@ get value for specified key in cloud db. keys list is queried by /keys api
##### description
##### description
*[NOT IMPLEMENTED]*
get edge terminal hw & os infomation including resource usage of CPU, RAM, IO, DISK etc...
*[NOT IMPLEMENTED]*
get edge terminal hw & os infomation including resource usage of CPU, RAM, IO, DISK etc...
#### POST /
debug
#### POST /
cmd
##### description
##### description
*[NOT IMPLEMENTED]*
turn on/off debug tunnel
send cmd to edge.
##### params
currently implemented cmd: reversetun, debug:list_files, debug:record, debug:toggle_log
-
sn: string
##### cmd: reversetun
-
op: on|off
###### description
-
ip: string. ip of public accessable host
create reverse ssh tunnel between edge box and an sshd server
-
port(optional): number. ssh port of the public accessable host. default 22.
###### params
-
port_tun(optional): number. tunnuel port of the public accessable host. default 11222.
none
-
user: ssh user of the public accessable host
###### body
-
password: ssh password of the public accessable host
```
##### return
{
"target":"0017SRTC",
"metaType":"cmd",
"metaValue":"reversetun",
"data":{
"host":"47.56.83.236",
"user":"root",
"password":"Hz123456",
"port":9999
}
}
```
-
target: edge box SN
-
metaType: always being "cmd"
-
metaValue: "reversetun
-
data.host: cloud sshd host (with serving port on 22)
-
data.user: cloud sshd user name
-
data.password: cloud sshd password
-
data.port: port on cloud sshd host, which will be created and reversed tunneling to the port 22 of the edge box.
###### return
-
type: json
-
type: json
-
example
-
example
```
```
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论