调用 DescribeForbiddenStreamGroupByPage 接口,查询禁推流的域名、应用名称、流名称等信息。
该接口支持查询以下层级的禁推流信息:
当存在多个层级的配置时,接口返回的禁推流信息以优先级最高的配置为准,优先级由低到高依次为:Vhost/Domain < Vhost/Domain+ App < Vhost/Domain + App + Stream。例如,当同时传入 Vhost、Domain、App 和 Stream 时,接口返回的是 Vhost + App + Stream 级别的禁推流信息。
注意
Vhost 和 Domain,则仅 Vhost 生效。Vhost 和 Domain 均未传入,则查询所有域名空间下的禁推流。请求频率:单用户请求频率限制为 10 次/秒。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | DescribeForbiddenStreamGroupByPage | 接口名称。当前 API 的名称为 DescribeForbiddenStreamGroupByPage。 |
| Version | String | 是 | 2023-01-01 | 接口版本。当前 API 的版本为 2023-01-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| PageNum | Integer | 是 | 1 | 查询数据的页码,取值必须大于等于 1。 |
| PageSize | Integer | 是 | 10 | 每页显示的数据条数,取值范围为 [1,1000]。 |
Vhost | String | 否 |
| 域名空间,即禁推流使用的域名所属的域名空间。默认为空,表示查询所有域名空间下的禁推流。您可以调用 ListDomainDetail 接口或在视频直播控制台的域名管理页面,查看需要查询的禁推流使用的域名所属的域名空间。 说明
|
Domain | String | 否 |
| 禁推流使用的域名,表示查询所有当前域名所属域名空间的禁推流。您可以调用 ListDomainDetail 接口或在视频直播控制台的域名管理页面,查看禁推流使用的域名。 说明
|
App | String | 否 |
| 应用名称,取值与禁推流地址中
|
Stream | String | 否 |
| 流名称,取值与禁推流地址中
说明
|
StreamList | Array of String | 否 |
| 流名称列表,最多可传入 50 个流名称。 说明
|
QueryType | String | 否 |
| 使用流名称进行查询的方式。默认值为
说明 如果 |
Sort | String | 否 |
| 排列方式,根据推流结束时间排序。默认值为
|
下表仅列出本接口特有的返回参数。更多信息请见返回结构。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| StreamInfoList | Array of StreamInfoList | - | 禁推流信息列表。 |
| RoughCount | Integer | 1 | 查询结果中禁推流的数量。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Vhost | String | push.example.com | 禁推流使用的域名所属的域名空间。 |
| Domain | String | push.example.com | 禁推流使用的域名。 |
| App | String | live | 禁推流使用的应用名称。 |
| Stream | String | example_stream | 禁推流使用的流名称。 |
| CreateTime | String | 2021-10-19T08:16:14Z | 禁推流被禁推的开始时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。 |
| EndTime | String | 2022-01-08T21:00:36Z | 禁推流结束禁推的时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。 |
| ForbiddenInfoDetails | Array of ForbiddenInfoDetails | - | 禁推流的主流和备流详情。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| CreateTime | String | 2021-10-19T08:16:14Z | 禁推流被禁推的开始时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。 |
| EndTime | String | 2022-01-08T21:00:36Z | 禁推流结束禁推的时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。 |
| Priority | Long | 1 | 流的优先级。数值越大,优先级越高。优先级最高的流为主流,其余流根据优先级决定备流切换顺序。 |
POST https://live.volcengineapi.com?Action=DescribeForbiddenStreamGroupByPage&Version=2023-01-01 { "Vhost": "push.example.com", "App": "live", "Stream": "example_stream", "Sort": "desc", "Domain": "push.example.com", "StreamList": [ "example_stream1", "example_stream2" ], "QueryType": "strict", "PageNum": 1, "PageSize": 10 }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "DescribeForbiddenStreamGroupByPage", "Version": "2023-01-01", "Service": "live", "Region": "cn-north-1" }, "Result": { "StreamInfoList": [ { "Vhost": "push.example.com", "Domain": "push.example.com", "App": "live", "Stream": "example_stream", "ForbiddenInfoDetails": [ { "CreateTime": "2021-10-19T08:16:14Z", "EndTime": "2022-01-08T21:00:36Z", "Priority": 1 } ], "CreateTime": "2021-10-19T08:16:14Z", "EndTime": "2022-01-08T21:00:36Z" } ], "RoughCount": 1 } }
下表仅列出本接口特有的错误码。更多信息请参见公共错误码获取详细信息。
| 状态码 | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 200 | CommonErr | - | 未分类错误。建议重试,如果仍返回该错误码,请联系技术支持。 |
| 400 | InvalidParam | - | 输入的参数无效或不符合要求,请参照请求参数说明进行检查。 |
| 400 | InvalidParam.BindError | Request parameter error, please check input data | 参数未通过校验,请检查参数类型是否正确。 |
| 403 | RequestForbidden | - | 请求被拒绝,当前账号下无请求的资源(域名空间、域名、应用、配置模版、证书)。 |
| 403 | RequestForbidden.AccountIDNotAllow | this AccountID does not have permission to access the corresponding resource, please check the request parameters | 请求被拒绝,当前账号下无请求的资源(域名空间、域名、应用、配置模版、证书)。 |
| 403 | RequestForbidden.BillingStatus | Billing status is not available for the AccountID, please activate the service or recharge. | 未开通视频直播服务或账号欠费,造成账单不可用,请检查服务开通情况和账号欠费情况。 |
| 403 | AccessDenied | User is not authorized to perform: %s on resource: %s | 请求被拒绝,当前账号下无请求的资源(域名空间、域名、应用、配置模版、证书)或者接口权限。 |
| 404 | ResourceNotFound | - | 未找到资源(域名空间、域名、应用、配置模版、证书)。建议重试,如果仍返回该错误码,请联系技术支持。 |
| 500 | InternalError | an internal error occurred, please contact the administrator. | 出现内部错误,请联系技术支持。 |
| 500 | InternalError.DB | an internal error related to database occurred, please contact the administrator. | 出现与数据库相关的内部错误,请联系技术支持。 |
| 502 | InternalServiceError | an internal error occurred, please contact the administrator. | 服务间出现错误,请联系技术支持。 |
| 502 | InternalServiceError.BadResponse | an internal error occurred, please contact the administrator. | 服务间出现错误,请联系技术支持。 |
| 504 | InternalServiceTimeout | Internal Service is timeout. please contact the administrator. | 内部服务超时,请联系技术支持。 |
视频直播提供了配套的开发工具集 SDK,支持多种编程语言,帮助您更方便的调用 API。