Queries the program list of a production studio.
Operation description
You can call this operation to query the program list of a production studio. This operation supports video source and component nodes.
QPS limits
The queries per second (QPS) limit for a single user is 4 calls per second. If the limit is exceeded, API calls are throttled. This may affect your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeCasterProgram |
get |
*Caster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region. |
cn-shanghai |
| CasterId |
string |
Yes |
The ID of the production studio.
Note
The name of the production studio in the list on the Cloud Production Studio page is its ID. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| EpisodeId |
string |
No |
The ID of the program. |
1872639A-F203-4EC5-8E43-CB92E68F**** |
| EpisodeType |
string |
No |
The type of the node. Valid values:
|
Resource |
| StartTime |
string |
No |
The start time. The time must be in the yyyy-MM-ddTHH:mm:ssZ format and in UTC. |
2016-06-29T09:00:00Z |
| EndTime |
string |
No |
The end time. The time must be in the yyyy-MM-ddTHH:mm:ssZ format and in UTC. |
2016-06-29T10:00:00Z |
| PageNum |
integer |
No |
The page number. |
5 |
| PageSize |
integer |
No |
The number of programs on each page. |
10 |
| Status |
integer |
No |
The status of the program. Valid values:
|
0 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| CasterId |
string |
The ID of the production studio. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| Episodes |
object |
||
| Episode |
array<object> |
The nodes. |
|
|
object |
A node. |
||
| ComponentIds |
object |
||
| ComponentId |
array |
The component IDs. |
|
|
string |
A component ID. |
["1872639A-F203-4EC5-8E43-CB929282****" ] |
|
| EndTime |
string |
The end time. The time is in the yyyy-MM-ddTHH:mm:ssZ format and in UTC. |
2016-06-29T10:02:00Z |
| EpisodeId |
string |
The ID of the program. |
1872639A-F203-4EC5-8E43-CB92E68F**** |
| EpisodeName |
string |
The name of the program. |
program_name_1 |
| EpisodeType |
string |
The type of the node. Valid values:
|
Resource |
| ResourceId |
string |
The ID of the video source. |
1872639A-F203-4EC5-8E43-CB92E837**** |
| StartTime |
string |
The start time. The time is in the yyyy-MM-ddTHH:mm:ssZ format and in UTC. |
2016-06-29T09:00:00Z |
| Status |
integer |
The status of the program. |
0 |
| SwitchType |
string |
The switch policy. Valid values:
|
TimeFirst |
| ProgramEffect |
integer |
Indicates whether the program list is enabled.
|
1 |
| ProgramName |
string |
The name of the program list. |
programs_name |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
| Total |
integer |
The total number of entries returned. |
1 |
Examples
Success response
JSON format
{
"CasterId": "LIVEPRODUCER_POST-cn-0pp1czt****",
"Episodes": {
"Episode": [
{
"ComponentIds": {
"ComponentId": [
"[\"1872639A-F203-4EC5-8E43-CB929282****\" ]"
]
},
"EndTime": "2016-06-29T10:02:00Z",
"EpisodeId": "1872639A-F203-4EC5-8E43-CB92E68F****",
"EpisodeName": "program_name_1",
"EpisodeType": "Resource",
"ResourceId": "1872639A-F203-4EC5-8E43-CB92E837****",
"StartTime": "2016-06-29T09:00:00Z",
"Status": 0,
"SwitchType": "TimeFirst"
}
]
},
"ProgramEffect": 1,
"ProgramName": "programs_name",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
"Total": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPageSize.Malformed | %s | |
| 400 | InvalidPageNum.Malformed | %s | |
| 400 | InvalidStartTime.Malformed | %s | |
| 400 | InvalidEndTime.Malformed | %s | |
| 400 | InvalidStatus.Malformed | %s | |
| 400 | InvalidParameter.Malformed | %s | |
| 400 | InvalidCasterId.Malformed | %s | |
| 500 | InternalError | %s | |
| 404 | InvalidCaster.NotFound | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.