添加拉流配置信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DomainName | string | 是 | 您的加速域名。 | example.com |
AppName | string | 是 | 应用名称。 | xxxApp |
StreamName | string | 是 | 流名称。 | xxxStream |
SourceUrl | string | 是 | 用户的直播流所在的源站。 说明支持多个,用英文分号(;)分隔。 | up.******.com.cn |
StartTime | string | 否 | 拉流开始时间。 说明UTC时间格式,StartTime和EndTime时间间隔在7天内。 | 2017-08-28T07:30:30Z |
EndTime | string | 否 | 拉流结束时间。 说明UTC时间格式,StartTime和EndTime时间间隔在7天内,且EndTime必须超过当前时间。 | 2017-08-28T09:30:30Z |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "3CB843A9-DD34-4881-B8D6-B0D539D111E4"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Param.Missing.StartTime | You must specify StartTime. | 缺少参数StartTime |
400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | 结束时间早于开始时间,请检查 |
400 | Duration.Exceed | The duration between StartTime and EndTime is too long. | StartTime和EndTime间隔过大 |
400 | ConfigAlreadyExists | The specified configuration already exists. | 配置已存在 |
403 | Deny.TooMany.Stream | The operation is denied because the maximum number of streams is exceeded. | stream数目超过上限 |
访问错误中心查看更多错误码。
特殊错误码
错误代码 | 描述 | HTTP状态码 | 语义 |
---|---|---|---|
InvalidDomain.NotFound | The domain provided does not exist in our records. | 404 | 当前账户下未查到域名。 |
IllegalOperation | Illegal domain operate is not permitted. | 403 | 不支持当前操作,如:非直播类域名。 |
Missing DomainName | DomainName is mandatory for this action. | 400 | 缺少参数。 |
InternalError | The request processing has failed due to some unknown error. | 500 | 后台发生未知错误。 |
InvalidStartTime.Malformed | Specified StartTime is malformed. | 400 | StartTime格式错误。 |
InvalidEndTime.Malformed | Specified EndTime is malformed. | 400 | EndTime格式错误。 |
InvalidEndTime.Missmatch | Specified end time does not math the specified start time or current time. | 400 | StartTime 和 EndTime 时间范围应在一周内,且EndTime超过当前时间。 |
ConfigAlreadyExists | Config has already exist. | 400 | 配置数据已存在。 |
PullStreamOverLimit | Pull stream is over limit for this domainName. | 400 | 该域名拉流流量已超过流量限制。 |