Mengkueri daftar studio produksi.
Deskripsi operasi
Buat studio produksi dengan memanggil operasi CreateCaster, lalu panggil operasi ini untuk mengkueri daftar studio produksi. Studio produksi dapat berada dalam status idle atau streaming.
Akun yang memanggil operasi ini harus memiliki ApsaraVideo Live diaktifkan.
Batas QPS
Batas QPS pengguna tunggal untuk operasi ini adalah 15 panggilan per detik. Jika batas ini terlampaui, panggilan API akan dibatasi, yang dapat memengaruhi bisnis Anda. Panggil operasi ini sesuai kebutuhan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeCasters |
get |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| CasterId |
string |
No |
ID studio produksi.
Catatan
|
LIVEPRODUCER_POST-cn-0pp1czt**** |
| CasterName |
string |
No |
Nama studio produksi. |
liveCaster**** |
| StartTime |
string |
No |
Waktu mulai. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2016-06-29T09:00:00Z |
| EndTime |
string |
No |
Waktu berakhir. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2016-06-29T11:00:00Z |
| PageNum |
integer |
No |
Nomor halaman. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 100. |
100 |
| Status |
integer |
No |
Status. Nilai valid:
|
0 |
| ChargeType |
integer |
No |
Metode penagihan. Nilai valid:
|
0 |
| OrderByModifyAsc |
string |
No |
Apakah akan mengurutkan studio produksi berdasarkan waktu modifikasi secara menaik. Nilai valid: true (urutan menaik berdasarkan waktu modifikasi) | false (urutan menurun berdasarkan waktu modifikasi, yang merupakan nilai default). Catatan
Jika parameter ini tidak ditentukan, nilai default adalah "false". |
false |
| NormType |
string |
No |
Tipe spesifikasi studio produksi. Nilai valid:
|
1 |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. Untuk informasi selengkapnya tentang kelompok sumber daya, lihat Apa itu kelompok sumber daya. |
rg-aekzw****** |
| Tag |
array<object> |
No |
Daftar tag. |
|
|
object |
No |
Daftar tag. |
||
| Key |
string |
No |
Kunci tag. |
TestKey |
| Value |
string |
No |
Nilai tag. |
TestValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil kueri daftar studio produksi. |
||
| CasterList |
object |
||
| Caster |
array<object> |
Daftar studio produksi. |
|
|
array<object> |
Informasi studio produksi. |
||
| CasterId |
string |
The ID of the production studio. This ID is used as a request parameter for other operations, such as querying stream URLs, starting a production studio, adding video resources, adding layouts, querying layouts, adding components, and adding playlists. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| CasterName |
string |
The name of the production studio. |
liveCaster**** |
| CasterTemplate |
string |
The resolution of the production studio. This parameter is required if the billing method is subscription.
|
lp_ld |
| ChannelEnable |
integer |
Indicates whether the channel is enabled.
|
1 |
| ChargeType |
string |
The billing method.
|
PrePaid |
| CreateTime |
string |
The time when the production studio was created. |
2017-08-30T12:02:57Z |
| Duration |
string |
The duration. The format is hh:mm:ss. |
1:02:33 |
| ExpireTime |
string |
The expiration time of the production studio. |
2018-08-30T12:02:57Z |
| LastModified |
string |
The time when the production studio was last modified. For example, the time when the production studio was started, stopped, or configured. |
2021-12-01T05:08:45Z |
| NormType |
integer |
The type of the production studio. Valid values:
|
1 |
| PurchaseTime |
string |
The time when the production studio was purchased. |
2017-08-30T12:02:57Z |
| StartTime |
string |
The time when the production studio was started. This parameter is returned only when the production studio is in the In Production state. |
2017-08-30T18:02:57Z |
| Status |
integer |
The status. Valid values:
|
1 |
| ClientTokenId |
string |
A client-generated token that is used to ensure the idempotence of the request. The token must be unique among different requests and can contain a maximum of 64 ASCII characters. |
53200b81-b761-4c10-842a-a0726d97**** |
| Tags |
object |
||
| tag |
array<object> |
The list of tags. |
|
|
object |
The tag. |
||
| TagKey |
string |
The tag key. |
TestKey |
| TagValue |
string |
The tag value. |
TestValue |
| ResourceGroupId |
string |
The ID of the resource group. For more information, see What is a resource group?. |
rg-acfmz****** |
| RequestId |
string |
ID permintaan. |
5c6a2a0df228-4a64- af62-20e91b****** |
| Total |
integer |
Jumlah total studio produksi. |
1 |
Contoh
Respons sukses
JSONformat
{
"CasterList": {
"Caster": [
{
"CasterId": "LIVEPRODUCER_POST-cn-0pp1czt****",
"CasterName": "liveCaster****",
"CasterTemplate": "lp_ld",
"ChannelEnable": 1,
"ChargeType": "PrePaid",
"CreateTime": "2017-08-30T12:02:57Z",
"Duration": "1:02:33",
"ExpireTime": "2018-08-30T12:02:57Z",
"LastModified": "2021-12-01T05:08:45Z",
"NormType": 1,
"PurchaseTime": "2017-08-30T12:02:57Z",
"StartTime": "2017-08-30T18:02:57Z",
"Status": 1,
"ClientTokenId": "53200b81-b761-4c10-842a-a0726d97****\n",
"Tags": {
"tag": [
{
"TagKey": "TestKey",
"TagValue": "TestValue"
}
]
},
"ResourceGroupId": "rg-acfmz******"
}
]
},
"RequestId": "5c6a2a0df228-4a64- af62-20e91b******",
"Total": 1
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | |
| 400 | MissingParameter | %s. | |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | |
| 400 | InvalidParameter.Status | %s, please check and try again. | |
| 400 | InvalidParameter.StartTime | %s, please check and try again later. | |
| 400 | InvalidParameter.EndTime | %s, please check and try again later. | |
| 400 | LiveServiceNotFound | %s, please check and try again later. | |
| 400 | InvalidParameter.PageSize | %s, please check and try again later. | |
| 400 | InvalidParameter.PageNum | %s, please check and try again later. | |
| 403 | PermissionDenied | %s, please check and try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.