All Products
Search
Document Center

ApsaraVideo Live:DescribeLiveStreamPreloadTasks

Last Updated:Nov 14, 2024

Operation description

Usage notes

You can query only data in the previous three days.

QPS limit

You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

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:
    • The required resource types are displayed in bold characters.
    • 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:DescribeLiveStreamPreloadTasks
*Domain
acs:cdn:*:{#accountId}:domain/{#DomainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

The streaming domain name.

example.com
TaskIdstringNo

The ID of the prefetch task. The task ID is returned when you call the SetLiveStreamPreloadTasks operation to configure the prefetch task.

yourTaskId
PlayUrlstringNo

The streaming URL. You can specify up to 100 streaming URLs in a request. Separate multiple streaming URLs with commas (,).

rtmp://guide.aliyundoc.com/liveApp****/liveStream****
PageSizeintegerNo

The number of entries per page. Valid values: 1 to 100.

10
PageNumintegerNo

The page number. Default value: 1.

1
StatusstringNo

The status of the prefetch task. Valid values:

  • complete
  • pending
  • preloading
  • failed
complete
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. Example: 2016-06-29T19:00:00Z. You can query only data in the previous three days.

2016-06-29T19: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. Example: 2016-06-30T19:00:00Z. The interval between the start time and end time cannot exceed three days.

2016-06-30T19:00:00Z

Response parameters

ParameterTypeDescriptionExample
object
PageNuminteger

The page number.

1
PageSizeinteger

The number of entries per page.

2
PreloadTasksarray<object>

The details of the prefetch task.

PreloadTaskobject
Areastring

The acceleration region where the live content is prefetched. Valid values:

  • domestic: regions in the Chinese mainland.
  • overseas: regions outside the Chinese mainland.
  • global: regions in and outside the Chinese mainland.
Note If this parameter is left empty, the acceleration region configured for the domain name is returned.
domestic
CreateTimestring

The time when the prefetch task was created.

2016-06-29T19:00:00Z
Descriptionstring

Indicates whether the prefetch task is successful. Valid values:

  • Successfully
  • InternalError
Successfully
DomainNamestring

The streaming domain name.

example.com
PlayUrlstring

The streaming URL.

rtmp://guide.aliyundoc.com/liveApp****/liveStream****
PreloadedEndTimestring

The time when the prefetch task ended.

2016-06-30T19:00:00Z
PreloadedStartTimestring

The time when the prefetch task started.

2016-06-29T19:00:00Z
Processstring

The progress of the prefetch task.

100%
Statusstring

The status of the prefetch task. Valid values:

  • Success
  • Failed
Note Success is returned only if the prefetch task is configured for all streaming URLs.
Success
TaskIdstring

The ID of the prefetch task.

yourTaskId
RequestIdstring

The ID of the request.

E1564CBC-DCFE-5E1B-8B78-8DED9A39F334
TotalNuminteger

The total number of entries returned.

1
TotalPageinteger

The total number of pages.

1

Examples

Sample success responses

JSONformat

{
  "PageNum": 1,
  "PageSize": 2,
  "PreloadTasks": {
    "PreloadTask": [
      {
        "Area": "domestic",
        "CreateTime": "2016-06-29T19:00:00Z",
        "Description": "Successfully",
        "DomainName": "example.com",
        "PlayUrl": "rtmp://guide.aliyundoc.com/liveApp****/liveStream****",
        "PreloadedEndTime": "2016-06-30T19:00:00Z",
        "PreloadedStartTime": "2016-06-29T19:00:00Z",
        "Process": "100%",
        "Status": "Success",
        "TaskId": "yourTaskId"
      }
    ]
  },
  "RequestId": "E1564CBC-DCFE-5E1B-8B78-8DED9A39F334",
  "TotalNum": 1,
  "TotalPage": 1
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamParameter invalid.Illegal input parameters
400InvalidEndTime.MismatchSpecified end time does not match the specified start time.-
400Duration.ExceedDuration between StartTime and EndTime is too long.-
500InternalErrorThe request processing has failed due to backend service exception.-

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

Change history

Change timeSummary of changesOperation
No change history