DescribeLiveStreamOnlineInfo

Last updated: 2019-06-25 22:24:46

PDF

## 1. API Description

API request domain name: live.tencentcloudapi.com.

This API queries the active upstream information list.

Default API request rate limit: 500 requests/second.

2. Request Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: DescribeLiveStreamOnlineInfo
Version Yes String Common parameter; the version of this API: 2018-08-01
Region No String Common parameter; optional for this API
PageNum Yes Integer The page number to get.
Default value: 1.
PageSize Yes Integer Page size.
Maximum value: 100.
Value range: any integer between 1 and 100.
Default value: 10.
Status No Integer 0: publishing not started; 1: publishing
StreamName No String Stream name.

3. Return Parameters

Parameter name Type Description
PageNum Integer Page number.
PageSize Integer Size per page
TotalNum Integer Total number of eligible ones.
TotalPage Integer Total number of pages.
StreamInfoList Array of StreamInfo Stream information list
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Sample

Request Sample

Input Sample Code

https://live.tencentcloudapi.com/?Action=DescribeLiveStreamOnlineInfo
&PageNum=1
&PageSize=10
&Status=1
&<Common request parameter>

Output Sample Code

{
    "Response": {
        "PageNum": 1,
        "PageSize": 10,
        "RequestId": "6d7080fe-7cc5-40eb-4d44-fecdd7a33cc5",
        "StreamlInfoList": [{
            "AppName": ["live"],
            "CreateMode": "1",
            "CreateTime": "2018-07-13 14:48:23",
            "Status": 1,
            "StreamId": "10905947996257011227",
            "StreamName": "teststream",
            "WaterMarkId": "0"
        }],
        "TotalNum": 1,
        "TotalPage": 1
    }
}

5. Developer Resources

API Explorer

API Explorer is a tool that provides ease of use in requesting APIs, authenticating identities, generating SDK and exploring APIs in Tencent Cloud environment.

6. Error Codes

The following error codes are API business logic-related. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error
InternalError.CallOtherSvrError Error calling internal service.
InternalError.ConfigNotExist The configuration does not exist.
InternalError.InvalidUser Account information error.
InvalidParameter Parameter error
InvalidParameterValue Incorrect parameter value