Menanyakan daftar program dari sebuah studio produksi.
Deskripsi operasi
Anda dapat memanggil operasi ini untuk menanyakan daftar program dari sebuah studio produksi. Operasi ini mendukung sumber video dan node komponen.
Batas QPS
Batas queries per second (QPS) untuk satu pengguna adalah 4 panggilan per detik. Jika batas tersebut dilampaui, panggilan API akan dibatasi (throttled). Hal ini dapat memengaruhi bisnis Anda. Rencanakan panggilan Anda sesuai dengan hal tersebut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeCasterProgram |
get |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| CasterId |
string |
Yes |
ID studio produksi.
Catatan
Nama studio produksi dalam daftar di halaman Cloud Production Studio adalah ID-nya. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| EpisodeId |
string |
No |
ID program. |
1872639A-F203-4EC5-8E43-CB92E68F**** |
| EpisodeType |
string |
No |
Jenis node. Nilai yang valid:
|
Resource |
| StartTime |
string |
No |
Waktu mulai. Waktu harus dalam format yyyy-MM-ddTHH:mm:ssZ dan dalam UTC. |
2016-06-29T09:00:00Z |
| EndTime |
string |
No |
Waktu berakhir. Waktu harus dalam format yyyy-MM-ddTHH:mm:ssZ dan dalam UTC. |
2016-06-29T10:00:00Z |
| PageNum |
integer |
No |
Nomor halaman. |
5 |
| PageSize |
integer |
No |
Jumlah program pada setiap halaman. |
10 |
| Status |
integer |
No |
Status program. Nilai yang valid:
|
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| CasterId |
string |
ID studio produksi. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| Episodes |
object |
||
| Episode |
array<object> |
Node. |
|
|
array<object> |
Sebuah 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 |
Menunjukkan apakah daftar program diaktifkan.
|
1 |
| ProgramName |
string |
Nama daftar program. |
programs_name |
| RequestId |
string |
ID permintaan. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
| Total |
integer |
Jumlah total entri yang dikembalikan. |
1 |
Contoh
Respons sukses
JSONformat
{
"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
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPageSize.Malformed | %s, please check and try again later. | |
| 400 | InvalidPageNum.Malformed | %s, please check and try again later. | |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | |
| 500 | InternalError | %s, please try again later. | |
| 500 | InvalidParameter.Status | %s, please check and try again later. | |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.