DescribeLiveStreamsPublishList
Retrieves the historical stream ingest records of a domain name, an application under a domain name, or a specific stream within a specified time range.
Operation description
You can call this operation to query historical streams within the last 30 days. The returned data contains the active stream information within the specified time range. This operation supports the following sorting methods:
-
stream_name_desc: sorts by live stream name in descending order.
-
stream_name_asc: sorts by live stream name in ascending order.
-
publish_time_desc: sorts by stream ingest time in descending order.
-
publish_time_asc: sorts by stream ingest time in ascending order.
QPS limit
The single-user QPS limit for this operation is 3 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamsPublishList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
The ingest domain or streamer streaming domain. Note
|
example.com |
| AppName |
string |
No |
The name of the application to which the stream belongs. You can view AppName on the Stream Management page. |
liveApp**** |
| StreamName |
string |
No |
The stream name. You can view StreamName on the Stream Management page. |
liveStream**** |
| StartTime |
string |
Yes |
The start time of stream ingest. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2017-12-21T08:00:00Z |
| EndTime |
string |
Yes |
The end time. The interval between EndTime and StartTime cannot exceed 30 days. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2017-12-22T08:00:00Z |
| PageSize |
integer |
No |
The page size. Valid values: 1 to 3000. Default value: 2000. |
1500 |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| StreamType |
string |
No |
The stream type. Valid values:
Valid values:
|
all |
| QueryType |
string |
No |
Specifies whether to use fuzzy match for the stream name. Valid values:
Valid values:
|
fuzzy |
| OrderBy |
string |
No |
The sorting method. Valid values:
Valid values:
|
publish_time_desc |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalPage |
integer |
The total number of pages. |
2 |
| PageNum |
integer |
The page number. |
2 |
| PageSize |
integer |
The page size. |
10 |
| RequestId |
string |
The request ID. |
40A4F36D-A7CC-473A-88E7-154F92242566 |
| TotalNum |
integer |
The total number of entries that match the specified conditions. |
11 |
| PublishInfo |
object |
||
| LiveStreamPublishInfo |
array<object> |
The stream ingest record information. |
|
|
object |
|||
| EdgeNodeAddr |
string |
The IP address of the CDN upstream node. |
10.175.XX.XX |
| PublishUrl |
string |
The complete ingest URL. |
rtmp://demo.aliyundoc.com/liveApp****/liveStream**** |
| StreamName |
string |
The stream name. |
liveStream**** |
| DomainName |
string |
The ingest domain or streamer streaming domain. |
example.com |
| StopTime |
string |
The time when stream ingest stopped. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2015-12-02T03:11:19Z |
| TranscodeId |
string |
The transcoding template ID. Note
This parameter is not returned when the Transcoded parameter is set to no. |
ld |
| PublishDomain |
string |
The ingest domain. |
demo.aliyundoc.com |
| AppName |
string |
The name of the application to which the stream belongs. |
liveApp**** |
| PublishTime |
string |
The time when stream ingest started. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2015-12-02T03:05:53Z |
| PublishType |
string |
The stream ingest type. Valid values:
|
edge |
| Transcoded |
string |
Indicates whether the stream is a transcoded stream. |
yes |
| ClientAddr |
string |
The IP address of the streamer. |
10.175.XX.XX |
| StreamUrl |
string |
The streaming URL. |
http://example.com/liveApp****/liveStream****.flv |
| AliInnerErrorFlags |
string |
The error code for the stream disconnection reason. Format: 3 digits or 1 digit. |
002 |
Examples
Success response
JSON format
{
"TotalPage": 2,
"PageNum": 2,
"PageSize": 10,
"RequestId": " 40A4F36D-A7CC-473A-88E7-154F92242566",
"TotalNum": 11,
"PublishInfo": {
"LiveStreamPublishInfo": [
{
"EdgeNodeAddr": "10.175.XX.XX",
"PublishUrl": "rtmp://demo.aliyundoc.com/liveApp****/liveStream****",
"StreamName": "liveStream****",
"DomainName": "example.com",
"StopTime": "2015-12-02T03:11:19Z",
"TranscodeId": "ld",
"PublishDomain": "demo.aliyundoc.com",
"AppName": "liveApp****",
"PublishTime": "2015-12-02T03:05:53Z",
"PublishType": "edge",
"Transcoded": "yes",
"ClientAddr": "10.175.XX.XX",
"StreamUrl": "http://example.com/liveApp****/liveStream****.flv",
"AliInnerErrorFlags": "002"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | QpsOverLimit | Qps is over limit for this domainName. | |
| 400 | InvalidStartTime.Malformed | Specified parameter StartTime is not valid. | |
| 400 | InvalidEndTime.Malformed | Specified parameter EndTime is not valid. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
| 400 | InvalidEndTime.Mismatch | Specified end time does not match the specified start time. | |
| 400 | Duration.Exceed | Duration between StartTime and EndTime is too long. | |
| 400 | LiveServiceNotFound | Your account does not open Live service yet | Your account has not yet activated ApsaraVideo Live. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.