Queries the ingest records of a specified domain name, application, or stream.
Operation description
You can query streams in the last 30 days. The active streams during the queried period are returned. This operation supports the following sorting methods:
stream_name_desc: Sorts by stream name in descending order.
stream_name_asc: Sorts by stream name in ascending order.
publish_time_desc: Sorts by ingest time in descending order.
publish_time_asc: Sorts by ingest time in ascending order.
QPS limit
You can call this operation up to 3 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions.
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 or streaming domain. Note Ensure that the domain is added to ApsaraVideo Live and that you have the required permissions to manage it. | example.com |
AppName | string | No | The name of the application. To view AppName, go to Stream Management. | liveApp**** |
StreamName | string | No | The name of the stream. To view StreamName, go to Stream Management. | liveStream**** |
StartTime | string | Yes | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2017-12-21T08:00:00Z |
EndTime | string | Yes | The end of the time range to query. The time range specified by the StartTime and EndTime parameters cannot exceed 30 days. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. | 2017-12-22T08:00:00Z |
PageSize | integer | No | The number of entries per page. 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:
| all |
QueryType | string | No | Specifies whether to perform a fuzzy match for the stream name. Valid values:
| fuzzy |
OrderBy | string | No | The sorting method. Valid values:
| publish_time_desc |
Response elements
Parameter | Type | Description | Example |
object | |||
TotalPage | integer | The total number of pages. | 2 |
PageNum | integer | The page number. | 2 |
PageSize | integer | The number of entries per page. | 10 |
RequestId | string | The request ID. | 40A4F36D-A7CC-473A-88E7-154F92242566 |
TotalNum | integer | The total number of entries that meet the criteria. | 11 |
| PublishInfo | object | ||
| LiveStreamPublishInfo | array<object> | The stream ingest records. | |
object | |||
EdgeNodeAddr | string | The IP address of the CDN point of presence (POP) to which the stream was ingested. | 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 or streaming domain. | example.com |
StopTime | string | The time when the stream ingest was stopped. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2015-12-02T03:11:19Z |
TranscodeId | string | The ID of the transcoding template. Note This parameter is unavailable if the value of the Transcoded parameter is no. | ld |
PublishDomain | string | The ingest domain. | demo.aliyundoc.com |
AppName | string | The name of the application to which the live stream belongs. | liveApp**** |
PublishTime | string | The time when the stream ingest was started. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2015-12-02T03:05:53Z |
PublishType | string | The type of the stream ingest. Valid values:
| edge |
Transcoded | string | Indicates whether the stream was a transcoded stream. | yes |
ClientAddr | string | The IP address of the client that pushed the live stream. | 10.175.XX.XX |
StreamUrl | string | The streaming URL. | http://example.com/liveApp****/liveStream****.flv |
AliInnerErrorFlags | string | The error code that indicates the cause of a stream interruption. The error code is a one-digit or three-digit number. | 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.