Memulai ulang tugas relay aliran yang ditarik.
Deskripsi operasi
Anda dapat memanggil operasi ini untuk merestart tugas stream pulling dan ingest.
Operasi ini dapat merestart tugas yang sedang berjalan, tugas dalam status retry abnormal, atau tugas yang telah dihentikan. Tugas yang sedang berjalan akan dihentikan terlebih dahulu sebelum direstart, sedangkan tugas yang telah dihentikan akan segera dijalankan kembali.
Restart tidak berlaku jika tugas belum mencapai waktu mulai yang dikonfigurasi.
Saat sebuah tugas direstart, tugas tersebut dijalankan berdasarkan konfigurasi terbaru, yang menyebabkan gangguan pada aliran ingest.
Jika tugas video-on-demand (VOD) direstart, pemutaran dimulai dari awal playlist terbaru. Untuk melanjutkan pemutaran, Anda dapat memanggil operasi update untuk mengatur indeks video dan progres pemutaran.
Batas QPS
Batas permintaan per detik (QPS) untuk satu pengguna adalah 10 panggilan per detik. Panggilan API yang melebihi batas ini akan mengalami throttle, yang dapat memengaruhi bisnis Anda. Rencanakan panggilan Anda secara sesuai.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:RestartLivePullToPush |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| Region |
string |
Yes |
Pusat Siaran Langsung. Nilai yang valid:
|
preregion |
| TaskId |
string |
Yes |
ID task. |
6f869419-0692-4fd5-8cf0-66cab659**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
a05e6b15-15af-405b-a4a2-01522450**** |
| TaskId |
string |
ID task baru. |
fb0d4ac7-c7e3-4978-9743-0bf2f6e8**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "a05e6b15-15af-405b-a4a2-01522450****",
"TaskId": "fb0d4ac7-c7e3-4978-9743-0bf2f6e8****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s. | Parameter error |
| 400 | LiveServiceNotFound | Your account does not open Live service yet | Your account has not yet activated ApsaraVideo Live. |
| 400 | InvalidParam.CodeIllegalDuration | %s. | The value of start time should be less than the value of end time . |
| 400 | CodeInvalidAliUid | This aliuid does not have a live domain name. | This aluid does not have a live domain name. |
| 400 | CodeTaskNotExist | Task does not exist. | The task does not exist. |
| 500 | InternalError | %s. | error on the live liveapi server. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.