功能描述
用于设置推拉流鉴权配置。
请求
请求 url
POST /ivc/cms/config/authstream
请求参数
此接口无请求参数。
请求头
请求体
该请求操作的实现需要有如下请求体。
{"Id": "0022c12a-e220-42e0-975f-800f872fc89e","PushState": 0,"PushSecret": "","PushExpired": 0,"PullState": 0,"PullSecret": "","PullExpired": 0}
字段名 | 类型 | 描述 | 必须 | 备注 |
Id | string | 鉴权配置 Id | 是 | uuid |
PullState | int | 是否开播放鉴权 | 是 | 1:开启,0:关闭 |
PullSecret | string | 播放密钥 | 是 | 长度0-10位 |
PullExpired | int64 | 播放过期时间 | 是 | 单位:分钟 |
PushState | int | 是否开启推流鉴权 | 是 | 1:开启,0:关闭 |
PushSecret | string | 推流密钥 | 是 | 长度0-10位 |
PushExpired | int64 | 推流过期时间 | 是 | 单位:分钟 |
响应
响应头
响应体
该响应体返回为 application/json 数据,包含完整节点数据的内容展示如下:
{"RequestId": "","Code": 0,"StatusCode": 200,"Message": "ok","Data": {"Id": "0022c12a-e220-42e0-975f-800f872fc89e","PushState": 0,"PushSecret": "","PushExpired": 0,"PullStaE": 0,"PullSecret": "","PullExpired": 0}}
字段名 | 类型 | 描述 | 备注 |
RequestId | string | 请求id | |
Code | int | 状态码,0 成功,500 操作失败 | |
StatusCode | int | 错误码,200 OK,其他详见错误中心 | |
Message | string | 返回消息 | |
Data | object | 返回结果 | |
Data
字段名 | 类型 | 描述 | 备注 |
Id | string | 鉴权配置Id | uuid |
PullState | int | 是否开播放鉴权 | 1:开启,0:关闭 |
PullSecret | string | 播放密钥 | 仅支持英文数字组合,长度不超过10个字符 |
PullExpired | int64 | 播放过期时间 | 单位:分钟,最长为60分钟 |
PushState | int | 是否开启推流鉴权 | 1:开启,0:关闭 |
PushSecret | string | 推流密钥 | 仅支持英文数字组合,长度不超过10个字符 |
PushExpired | int64 | 推流过期时间 | 单位:分钟,最长为60分钟 |