Queries dual-stream disaster recovery online records.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:QueryLiveDomainMultiStreamList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Domain |
string |
Yes |
The primary streaming domain. |
demo.aliyundoc.com |
| StreamName |
string |
No |
The name of the live stream. This parameter is used for exact match filtering. |
teststream |
| StartTime |
string |
No |
The start time of the query range. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format (UTC time). The interval between StartTime and EndTime must be within 7 days. |
2024-12-01T01:00:00Z |
| EndTime |
string |
No |
The end time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format (UTC time). The end time must be later than the start time. The interval between the start time and end time cannot exceed 7 days. Default value: the last 24 hours. |
2024-12-02T01:00:00Z |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Valid values: 1 to 100. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
CF60DB6A-7FD6-426E-9288-122CC1A5**** |
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries. |
19 |
| OnlineStreams |
array<object> |
The number of online records. |
|
|
array<object> |
|||
| Domain |
string |
The streaming domain of the streamer. |
play.***.com |
| AppName |
string |
The application name. |
apptest |
| StreamName |
string |
The name of the live stream. |
teststream |
| OptimalMode |
string |
The feature switch. Valid values:
Valid values:
|
on |
| UpstreamList |
array<object> |
The list of all candidate streams. |
|
|
object |
|||
| UpstreamSequence |
string |
The unique identifier of the stream ingest. |
***test_Alirewrite1 |
| UpstreamIp |
string |
The IP address of the stream ingest client. |
1.1.1.1 |
| UpstreamTime |
string |
The stream ingest time. |
2024-11-13T09:20:47Z |
| MasterFlag |
boolean |
The active/standby tag. Note
This tag indicates which stream is currently being distributed. Valid values:
|
false |
| ChangeLogs |
array<object> |
The stream switching records. |
|
|
object |
|||
| ChangeTime |
string |
The switchover time. |
2024-11-13T09:20:47Z |
| ChangeReason |
string |
The reason for the switchover
|
merge cut manually |
| MasterUpstream |
string |
The stream used after the switchover. |
rtmp://118.178.168.35:1936/wwMultitest/pull.livetest2.aliyunlive.com_wwMultitest428_AliRewrite_2?vhost=pull.livetest2.aliyunlive.com&live_rtmp_test=on |
| UpstreamSequence |
string |
The identifier of the stream after the switchover. |
***test_AliRewrite_2 |
| UpstreamIp |
string |
The IP address used after the switchover. |
1.1.1.1 |
Examples
Success response
JSON format
{
"RequestId": "CF60DB6A-7FD6-426E-9288-122CC1A5****",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 19,
"OnlineStreams": [
{
"Domain": "play.***.com",
"AppName": "apptest",
"StreamName": "teststream",
"OptimalMode": "on",
"UpstreamList": [
{
"UpstreamSequence": "***test_Alirewrite1",
"UpstreamIp": "1.1.1.1",
"UpstreamTime": "2024-11-13T09:20:47Z",
"MasterFlag": false
}
],
"ChangeLogs": [
{
"ChangeTime": "2024-11-13T09:20:47Z",
"ChangeReason": "merge cut manually",
"MasterUpstream": "rtmp://118.178.168.35:1936/wwMultitest/pull.livetest2.aliyunlive.com_wwMultitest428_AliRewrite_2?vhost=pull.livetest2.aliyunlive.com&live_rtmp_test=on",
"UpstreamSequence": "***test_AliRewrite_2",
"UpstreamIp": "1.1.1.1"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s. | Parameter error |
| 400 | InvalidParam.CodeIllegalDuration | %s. | The value of start time should be less than the value of end time . |
| 500 | InternalError | %s. | error on the live liveapi server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.