Queries the operation history of live streams under a main streaming domain or an application.

Note This operation can be called up to 50 times per second.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeLiveStreamsControlHistory

The operation that you want to perform. Set the value to DescribeLiveStreamsControlHistory.

DomainName String Yes www.yourdomain.com

The main streaming domain.

EndTime String Yes 2017-12-22T08:00:00Z

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 maximum time range that can be specified is seven days.

StartTime String Yes 2017-12-21T08:00:00Z

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.

AppName String No testApp

The name of the application.

Response parameters

Parameter Type Example Description
ControlInfo Array of LiveStreamControlInfo

The operation history of live streams.

LiveStreamControlInfo
StreamName String StreamName

The name of the live stream.

ClientIP String 10.207.197.201

The IP address that is used by the client for live streaming.

Action String DescribeLiveStreamsControlHistory

The name of the operation performed.

TimeStamp String 2015-12-01T16:36:18Z

The time when the operation was performed. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

RequestId String 9C31856F-386D-4DB3-BE79-A0AA493D702A

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/? Action=DescribeLiveStreamsControlHistory
&DomainName=play.yourdomain.com
&EndTime=2017-12-22T08:00:00Z
&StartTime=2017-12-21T08:00:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeLiveStreamsControlHistoryResponse>
	  <ControlInfo>
		    <LiveStreamControlInfo>
			      <Action>forbid</Action>
			      <ClientIP>10.207.197.201</ClientIP>
			      <StreamName>test101.aliyunlive.com/diaoliang/dd</StreamName>
			      <TimeStamp>2015-12-01T16:36:18Z</TimeStamp>
		    </LiveStreamControlInfo>
	  </ControlInfo>
	  <RequestId>9C31856F-386D-4DB3-BE79-A0AA493D702A</RequestId>
</DescribeLiveStreamsControlHistoryResponse>

JSON format

{
    "ControlInfo":{
        "LiveStreamControlInfo":[{
            "Action":"forbid",
            "ClientIP":"10.207.197.201",
            "StreamName":"test101.aliyunlive.com/diaoliang/dd",
            "TimeStamp":"2015-12-01T16:36:18Z"
        }]
    },
    "RequestId":"9C31856F-386D-4DB3-BE79-A0AA493D702A"
}

Error codes

HttpCode Error code Error message Description
400 InvalidStartTime.Malformed Specified parameter StartTime is not valid. The error message returned because the format of the start time is invalid. Check whether the value of the StartTime parameter is correct.
400 InvalidEndTime.Malformed Specified parameter EndTime is not valid. The error message returned because the format of the end time is invalid. Check whether the value of the EndTime parameter is correct.
400 InvalidEndTime.Mismatch Specified end time does not math the specified start time. The error message returned because the end time is earlier than the start time. Check whether the values of the StartTime and EndTime parameters are correct.

For a list of error codes, visit the API Error Center.