Menambahkan konfigurasi callback perekaman untuk domain tertentu.
Deskripsi operasi
Sebelum memanggil operasi ini, kueri konfigurasi callback perekaman live yang telah ada. Untuk informasi selengkapnya, lihat Query live recording callback configurations.
Batas QPS
Operasi ini dibatasi hingga 30 permintaan per detik (QPS) per pengguna. Panggilan API yang melebihi batas ini akan dikenai Pengendalian aliran (throttled). Pengendalian aliran dapat memengaruhi bisnis Anda, sehingga Anda perlu merencanakan panggilan API secara tepat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveRecordNotifyConfig |
create |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Domain streaming ingest. |
example.com |
| NotifyUrl |
string |
Yes |
URL untuk callback perekaman, yang mencakup callback event perekaman dan callback status. Catatan
URL harus diawali dengan |
http://demo.aliyundoc.com/examplecallback.action |
| NeedStatusNotify |
boolean |
No |
Menentukan apakah callback status untuk tugas perekaman diaktifkan. Nilai yang valid:
|
false |
| OnDemandUrl |
string |
No |
URL untuk callback perekaman on-demand. Catatan
URL harus diawali dengan |
http://learn.aliyundoc.com/ondemandcallback.action |
| NotifyReqAuth |
boolean |
No |
||
| NotifyAuthKey |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
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 | ConfigAlreadyExists | Config has already exist. | |
| 400 | InvalidOnDemandUrl.Malformed | Specified OnDemandUrl is invalid. | |
| 400 | InvalidOnDemandUrl.Unsafe | Specified OnDemandUrl is not safe. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.