Memperbarui konfigurasi callback perekaman untuk sebuah Nama domain.
Deskripsi operasi
Anda dapat memperbarui konfigurasi callback perekaman berikut untuk sebuah Nama domain:
URL callback untuk event perekaman, termasuk callback saat pembuatan file rekaman dan status task perekaman. Untuk informasi selengkapnya, lihat Recording event callbacks.
URL callback untuk perekaman on-demand. Untuk informasi selengkapnya, lihat On-demand recording callbacks.
Pengaturan penerimaan callback untuk status task perekaman.
Batas QPS
Batas permintaan per detik (QPS) untuk satu pengguna adalah 30 panggilan per detik. Jika batas ini terlampaui, panggilan API akan dikenai Pengendalian aliran. Pengendalian aliran dapat memengaruhi operasional bisnis Anda. Oleh karena itu, rencanakan panggilan API secara tepat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLiveRecordNotifyConfig |
update |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Domain streaming. |
example.com |
| NotifyUrl |
string |
Yes |
URL callback untuk perekaman. Ini mencakup callback untuk event perekaman dan status perekaman. Catatan
|
http://learn.aliyundoc.com/examplecallback.action |
| OnDemandUrl |
string |
No |
URL callback untuk perekaman on-demand. Catatan
|
http://guide.aliyundoc.com/ondemandcallback.action |
| NeedStatusNotify |
boolean |
No |
Menentukan apakah menerima callback untuk status task perekaman. Nilai yang valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD"
}
Respons error
JSONformat
{
"Code":"InternalError",
"HostId":"live.aliyuncs.com",
"Message":"The request processing has failed due to some unknown error.",
"RequestId":"6EBD1AC4-C34D-4AE1-963E-B688A228BE31"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidNotifyUrl.Malformed | Specified NotifyUrl is invalid. | Invalid value of notifyurl. Check whether the notifyurl parameter that you specified is correct. |
| 400 | InvalidNotifyUrl.Unsafe | Specified NotifyUrl is not safe. | Invalid value of notifyurl. Check whether the notifyurl parameter that you specified is correct. |
| 400 | InvalidOnDemandUrl.Malformed | Specified OnDemandUrl is invalid. | |
| 400 | InvalidOnDemandUrl.Unsafe | Specified OnDemandUrl is not safe. | |
| 400 | InvalidDomain.NotFound | Specified Domain is invalid. | |
| 400 | Forbidden | Ram Permission is forbidden. | |
| 404 | InvalidConfig.NotFound | Config does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.