Queries the dual-stream disaster recovery records of online streams.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
live:QueryLiveDomainMultiStreamList | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Domain | string | Yes | The main streaming domain. | demo.aliyundoc.com |
StreamName | string | No | The name of the live stream. This parameter is used for exact match. | teststream |
StartTime | string | No | 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. The time range specified by the StartTime and EndTime parameters cannot exceed seven days. | 2024-12-01T01:00:00Z |
EndTime | string | No | The end 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. The end time must be later than the start time. The time range specified by the StartTime and EndTime parameters cannot exceed seven days. If the two parameters are not specified, data of the last 24 hours is queried by default. | 2024-12-02T01:00:00Z |
PageNumber | long | 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 parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.