文档
测试

直播流配置

POST
http://domain/api/v1/live/subdomain/sets

接口描述

直播流配置

请求头

参数名
类型
描述
必填
Content-Type
application/json
编码要求: UTF-8
必填
apiKey
string
TkF2MFa9ZAfdOvoQoFIvM9Ch0NTLRzltL5DROGT8xGqCNkzv75qucmM7uxzxi0Nn
必填

请求参数

参数名
类型
描述
必填
vhost
string
流域名(cdn系统的子域名)
必填
remaps
array
配置信息
必填
actived
bool
是否激活
必填
closeOnSwitch
bool
切流时是否关闭已存在的数据
必填
app
string
应用名称
必填
streamid
string
流名称
必填
token
string
鉴权TOKEN
必填
pushToken
string
推流检测TOKEN
必填
pushSecretKey
string
推流检测密码
必填
pusherNotifyUrl
string
推流成功回调通知
可选

请求 / 示例

请求示例: ``` { "vhost": "test.api.live", "remaps":[{ "actived": true, "closeOnSwitch": false, "app":"app01", "streamid":"tt01", "token":"02e51862352ca1dde4c98994cd18e25f6e647bb4", "pushToken":"2a441888b8ff3fa8a7cb6348bbf7d638de42b4cb", "pushSecretKey":"1234567", "pusherNotifyUrl": "http://test.api.live" },{ "actived": true, "closeOnSwitch": false, "app":"app01", "streamid":"tt02", "token":"02e51862352ca1dde4c98994cd18e25f6e647bb4", "pushToken":"2a441888b8ff3fa8a7cb6348bbf7d638de42b4cb", "pushSecretKey":"1234567", "pusherNotifyUrl": "http://test.api.live" }] } ``` 返回参数示例: ``` { "code": 200, "msg": "ok", "data": [] } ```