联系我们  13266631104
说明文档
切换说明
通过IP和端口查找源节点

add_or_set_origin

通过IP和端口查找源节点,已存在则更新源节点配置信息,否则添加源节点

Body 请求参数

{

"ip":"string",

"port":0,

"max_connection":0,

"hls_enable":"string",

"hls_fragment":0,

"hls_window":0,

"hls_path":"string",

"name":"string",

"desc":"string",

"token":"string"

}


请求参数

名称

位置

类型

必选

说明

ip

body

string

set时候传入 add的时候不传

port

body

integer

set时候传入 add的时候不传

max_connection

body

integer

100~10000

hls_enable

body

string

on开,off关

hls_fragment

body

integer

大于0

hls_window

body

integer

大于hls_fragment

hls_path

body

string

预留字段 hls切片保存位置

name

body

string

节点名称

desc

body

string

节点描述信息

token

body

string

none


返回示例

{

"code":0,

"reason":"string",

"data":{

"ip":"string",

"port":"string"

}

}


返回数据结构

名称

类型

必选

约束

说明

code

integer

true

none

none

reason

string

true

none

none

data

object

true

none

none

ip

string

true

none

新增源站成功时返回源站IP

port

string

true

none

新增源站成功时返回源站端口


了解更多,免费体验,立即预约演示

联系电话:13266631104
预约演示

飞思未来(深圳)科技有限公司

飞思公众号 飞思公众号
Copyright ◎ 2019 飞思未来(深圳)科技有限公司 All right reserved.备案号:粤ICP备17047092号 技术支持:易百讯 - 深圳网站建设
联系电话
13266631104
关注我们
备案号:粤ICP备17047092号
技术支持:易百讯 - 深圳网站建设
Copyright ◎ 2019 飞思未来(深圳)科技有限公司 All right reserved.
微信咨询
 
 
 

留下您的联系方式

我们将安排专业人员为您服务
×