DescribeLiveStreamPreloadTasks
Only data from the last 3 days can be queried.
Operation description
This operation only supports querying data from the last 3 days.
QPS limit
The single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamPreloadTasks |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
The streaming domain. |
example.com |
| TaskId |
string |
No |
The task ID. You can obtain the preload task ID by calling the SetLiveStreamPreloadTasks operation. |
yourTaskId |
| PlayUrl |
string |
No |
The live streaming URL. You can specify multiple URLs separated by commas (,), up to 100. |
rtmp://guide.aliyundoc.com/liveApp****/liveStream**** |
| PageSize |
integer |
No |
The number of entries per page. Maximum value: 100. Valid values: any integer from 1 to 100. |
10 |
| PageNum |
integer |
No |
The page number to return. Default value: 1. |
1 |
| Status |
string |
No |
The task status. Valid values:
Valid values:
|
complete |
| StartTime |
string |
No |
The start time in ISO 8601 format in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. The start time must be within the last 3 days. |
2016-06-29T19:00:00Z |
| EndTime |
string |
No |
The end time in ISO 8601 format in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. The interval between EndTime and StartTime cannot exceed 3 days. |
2016-06-30T19:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNum |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
2 |
| PreloadTasks |
object |
||
| PreloadTask |
array<object> |
The details of the live stream preload task. |
|
|
object |
The details of the live stream preload task. |
||
| Area |
string |
The preload region. Valid values:
Note
If this parameter is not specified, the default preload region is the acceleration region configured for your domain name. |
domestic |
| CreateTime |
string |
The time when the preload task was created, in ISO 8601 format in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
2016-06-29T19:00:00Z |
| Description |
string |
Indicates whether the preload task succeeded. Valid values:
|
Successfully |
| DomainName |
string |
The streaming domain. |
example.com |
| PlayUrl |
string |
The live streaming URL. |
rtmp://guide.aliyundoc.com/liveApp****/liveStream**** |
| PreloadedEndTime |
string |
The time when the preload ended, in ISO 8601 format in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
2016-06-30T19:00:00Z |
| PreloadedStartTime |
string |
The time when the preload started, in ISO 8601 format in UTC. Format: yyyy-MM-ddTHH:mm:ssZ. |
2016-06-29T19:00:00Z |
| Process |
string |
The progress percentage. |
100% |
| Status |
string |
The task status. Valid values:
Note
The task is considered failed if any subtask fails to be created. |
Success |
| TaskId |
string |
The task ID. |
yourTaskId |
| RequestId |
string |
The request ID. |
E1564CBC-DCFE-5E1B-8B78-8DED9A39F334 |
| TotalNum |
integer |
The total number of entries that match the conditions. |
1 |
| TotalPage |
integer |
The total number of pages. |
1 |
Examples
Success response
JSON format
{
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam | Parameter invalid. | Illegal input parameters |
| 400 | InvalidEndTime.Mismatch | Specified end time does not match the specified start time. | |
| 400 | Duration.Exceed | Duration between StartTime and EndTime is too long. | |
| 500 | InternalError | The request processing has failed due to backend service exception. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.