You need to enable JavaScript to run this app.
视频直播

视频直播

复制全文
流管理
DescribeForbiddenStreamGroupByPage - 查询禁推流信息
复制全文
DescribeForbiddenStreamGroupByPage - 查询禁推流信息

调用 DescribeForbiddenStreamGroupByPage 接口,查询禁推流的域名、应用名称、流名称等信息。

使用说明

该接口支持查询以下层级的禁推流信息:

  • Vhost/Domain
  • Vhost/Domain+ App
  • Vhost/Domain + App + Stream

当存在多个层级的配置时,接口返回的禁推流信息以优先级最高的配置为准,优先级由低到高依次为:Vhost/Domain < Vhost/Domain+ App < Vhost/Domain + App + Stream。例如,当同时传入 VhostDomainAppStream 时,接口返回的是 Vhost + App + Stream 级别的禁推流信息。

注意

  • 如果同时传入 VhostDomain,则仅 Vhost 生效。
  • 如果 Vhost 和 Domain 均未传入,则查询所有域名空间下的禁推流。

注意事项

请求频率:单用户请求频率限制为 10 次/秒

请求说明

  • 请求方式:POST
  • 请求地址:https://live.volcengineapi.com?Action=DescribeForbiddenStreamGroupByPage&Version=2023-01-01

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringDescribeForbiddenStreamGroupByPage接口名称。当前 API 的名称为 DescribeForbiddenStreamGroupByPage
VersionString2023-01-01接口版本。当前 API 的版本为 2023-01-01

Body

参数类型是否必选示例值描述
PageNumInteger1查询数据的页码,取值必须大于等于 1
PageSizeInteger10每页显示的数据条数,取值范围为 [1,1000]。

Vhost

String

push.example.com

域名空间,即禁推流使用的域名所属的域名空间。默认为空,表示查询所有域名空间下的禁推流。您可以调用 ListDomainDetail 接口或在视频直播控制台的域名管理页面,查看需要查询的禁推流使用的域名所属的域名空间。

说明

  • 如果同时传入 Vhost 和 Domain,则 Vhost 优先级更高。
  • 如果 Vhost 和 Domain 均未传入,则查询所有域名空间下的禁推流。

Domain

String

push.example.com

禁推流使用的域名,表示查询所有当前域名所属域名空间的禁推流。您可以调用 ListDomainDetail 接口或在视频直播控制台的域名管理页面,查看禁推流使用的域名。

说明

  • 如果同时传入 Vhost 和 Domain,则 Vhost 优先级更高。
  • 如果 Vhost 和 Domain 均未传入,则查询所有域名空间下的禁推流。

App

String

live

应用名称,取值与禁推流地址中 AppName 字段取值相同。默认为空,表示查询所有应用名称。长度为 1 到 30 个字符,支持以下字符:

  • 大写字母 A - Z
  • 小写字母 a - z
  • 数字(0 - 9)
  • 下划线(_)
  • 短横线(-)
  • 句点(.)

Stream

String

example_stream

流名称,取值与禁推流地址中 StreamName 字段取值相同。长度为 1 到 100 个字符。支持以下字符:

  • 大写字母 A - Z
  • 小写字母 a - z
  • 数字(0 - 9)
  • 下划线(_)
  • 短横线(-)
  • 句点(.)

说明

  • 如果同时传入 StreamStreamList,则 Stream 优先级更高。
  • 如果 Stream 和 StreamList 均未传入,则查询所有流名称。

StreamList

Array of String

["example_stream1","example_stream2"]

流名称列表,最多可传入 50 个流名称。

说明

  • 如果同时传入 StreamStreamList,则 Stream 优先级更高。
  • 如果 Stream 和 StreamList 均未传入,则查询所有流名称。

QueryType

String

strict

使用流名称进行查询的方式。默认值为 strict。取值如下:

  • fuzzy:模糊匹配,英文区分大小写。
  • strict:精准匹配。

说明

如果 StreamList 生效且包含 2 个及以上的流名称,则仅支持取值 strict

Sort

String

desc

排列方式,根据推流结束时间排序。默认值为 desc。取值如下:

  • asc:升序,即从时间最远到最近排序。
  • desc:降序,即从时间最近到最远排序。

返回参数

下表仅列出本接口特有的返回参数。更多信息请见返回结构

参数类型示例值描述
StreamInfoListArray of StreamInfoList-禁推流信息列表。
RoughCountInteger1查询结果中禁推流的数量。

StreamInfoList

参数类型示例值描述
VhostStringpush.example.com禁推流使用的域名所属的域名空间。
DomainStringpush.example.com禁推流使用的域名。
AppStringlive禁推流使用的应用名称。
StreamStringexample_stream禁推流使用的流名称。
CreateTimeString2021-10-19T08:16:14Z禁推流被禁推的开始时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。
EndTimeString2022-01-08T21:00:36Z禁推流结束禁推的时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。
ForbiddenInfoDetailsArray of ForbiddenInfoDetails-禁推流的主流和备流详情。

ForbiddenInfoDetails

参数类型示例值描述
CreateTimeString2021-10-19T08:16:14Z禁推流被禁推的开始时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。
EndTimeString2022-01-08T21:00:36Z禁推流结束禁推的时间。遵循 RFC3339 格式的 UTC 时间,精度为秒。
PriorityLong1流的优先级。数值越大,优先级越高。优先级最高的流为主流,其余流根据优先级决定备流切换顺序。

请求示例

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
    }
}

错误码

下表仅列出本接口特有的错误码。更多信息请参见公共错误码获取详细信息。

状态码错误码错误信息说明
200CommonErr-未分类错误。建议重试,如果仍返回该错误码,请联系技术支持
400InvalidParam-输入的参数无效或不符合要求,请参照请求参数说明进行检查。
400InvalidParam.BindErrorRequest parameter error, please check input data参数未通过校验,请检查参数类型是否正确。
403RequestForbidden-请求被拒绝,当前账号下无请求的资源(域名空间、域名、应用、配置模版、证书)。
403RequestForbidden.AccountIDNotAllowthis AccountID does not have permission to access the corresponding resource, please check the request parameters请求被拒绝,当前账号下无请求的资源(域名空间、域名、应用、配置模版、证书)。
403RequestForbidden.BillingStatusBilling status is not available for the AccountID, please activate the service or recharge.未开通视频直播服务或账号欠费,造成账单不可用,请检查服务开通情况和账号欠费情况。
403AccessDeniedUser is not authorized to perform: %s on resource: %s请求被拒绝,当前账号下无请求的资源(域名空间、域名、应用、配置模版、证书)或者接口权限。
404ResourceNotFound-未找到资源(域名空间、域名、应用、配置模版、证书)。建议重试,如果仍返回该错误码,请联系技术支持
500InternalErroran internal error occurred, please contact the administrator.出现内部错误,请联系技术支持
500InternalError.DBan internal error related to database occurred, please contact the administrator.出现与数据库相关的内部错误,请联系技术支持
502InternalServiceErroran internal error occurred, please contact the administrator.服务间出现错误,请联系技术支持
502InternalServiceError.BadResponsean internal error occurred, please contact the administrator.服务间出现错误,请联系技术支持
504InternalServiceTimeoutInternal Service is timeout. please contact the administrator.内部服务超时,请联系技术支持

服务端 SDK

视频直播提供了配套的开发工具集 SDK,支持多种编程语言,帮助您更方便的调用 API。

最近更新时间:2026.01.19 11:44:11
这个页面对您有帮助吗?
有用
有用
无用
无用