All Products
Search
Document Center

:QueryLiveDomainMultiStreamList

Last Updated:May 13, 2025

Queries the dual-stream disaster recovery records of online streams.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
live:QueryLiveDomainMultiStreamListget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainstringYes

The main streaming domain.

demo.aliyundoc.com
StreamNamestringNo

The name of the live stream. This parameter is used for exact match.

teststream
StartTimestringNo

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
EndTimestringNo

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
PageNumberlongNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Default value: 10.

Valid values: 1 to 100.

10

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

CF60DB6A-7FD6-426E-9288-122CC1A5****
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

19
OnlineStreamsarray<object>

The online streams returned.

onlineStreamsobject
Domainstring

The main streaming domain.

play.***.com
AppNamestring

The name of the application.

apptest
StreamNamestring

The name of the live stream.

teststream
OptimalModestring

Indicates whether the dual-stream disaster recovery feature is enabled. Valid values:

  • on: enabled
  • off: disabled
on
UpstreamListarray<object>

The standby streams.

upstreamListobject
UpstreamSequencestring

The unique identifier of the stream ingest.

***test_Alirewrite1
UpstreamIpstring

The IP address of the stream ingest client.

1.1.1.1
UpstreamTimestring

The stream ingest time.

2024-11-13T09:20:47Z
MasterFlagboolean

The active/standby tag.

Note This parameter indicates whether the active or standby stream is being distributed.

Valid values:

  • true
  • false
false
ChangeLogsarray<object>

The switchover records.

changeLogsobject
ChangeTimestring

The switchover time.

2024-11-13T09:20:47Z
ChangeReasonstring

The reason for the switchover.

  • merge cut manually: You proactively switched the stream.
  • master stream no data: No data is available in the active stream.
  • master stream low quality: The quality of the active stream deteriorated.
merge cut manually
MasterUpstreamstring

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
UpstreamSequencestring

The identifier of the stream after the switchover.

***test_AliRewrite_2
UpstreamIpstring

The IP address used after the switchover.

1.1.1.1

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400InvalidParameter%s.Parameter error
400InvalidParam.CodeIllegalDuration%s.The value of start time should be less than the value of end time .
500InternalError%s.error on the live liveapi server.

For a list of error codes, visit the Service error codes.