Anda dapat memanggil operasi CommitStagingRoutineCode untuk mempromosikan versi staging kode JavaScript (JS) ke lingkungan produksi.
Deskripsi operasi
Frekuensi pemanggilan operasi ini dibatasi hingga 100 kali per detik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dcdn:CommitStagingRoutineCode |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama fungsi EdgeRoutine. Nama tersebut harus unik dalam satu Akun Alibaba Cloud. |
test |
| CodeDescription |
string |
Yes |
Deskripsi versi kode. |
Hello World |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Content |
object |
Nomor versi kode. |
1620876959997924701 |
| RequestId |
string |
ID permintaan. |
5CC228B4-7A67-4016-9C9F-4A4133494A91 |
Contoh
Respons sukses
JSONformat
{
"Content": 1620876959997924600,
"RequestId": "5CC228B4-7A67-4016-9C9F-4A4133494A91"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EdgeRoutine.GeneralError | A server error occurred: %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.