Membuat penerapan canary berbasis persentase untuk versi kode Routine di lingkungan tertentu.
Deskripsi operasi
Catatan Penggunaan
Saat membuat penerapan versi kode Routine, parameter
Envhanya mendukungstaginguntuk lingkungan staging atauproductionuntuk lingkungan produksi.Parameter
CodeVersionsmendukung maksimum dua versi untuk rilis canary, dan total persentase versi tersebut harus sama dengan 100%.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:CreateRoutineCodeDeployment |
none |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama Edge Function Routine. |
|
| Env |
string |
Yes |
Nama lingkungan.
|
production |
| Strategy |
string |
Yes |
Strategi penerapan.
|
percentage |
| CodeVersions |
array<object> |
Yes |
Daftar konfigurasi versi rilis canary berbasis persentase. Maksimum dua versi didukung, dan total persentase harus sama dengan 100. |
|
|
object |
Yes |
Satu konfigurasi versi rilis canary berbasis persentase. |
||
| Percentage |
integer |
Yes |
Persentase rilis canary untuk versi kode. Nilai valid: 1 hingga 100. |
|
| CodeVersion |
string |
Yes |
Nomor versi kode. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
|
| Strategy |
string |
Strategi rilis canary. Nilai tetap: percentage. |
|
| DeploymentId |
string |
ID catatan penerapan. |
|
| CodeVersions |
array<object> |
Daftar konfigurasi versi kode rilis canary berbasis persentase. |
|
|
object |
Satu konfigurasi versi kode rilis canary berbasis persentase. |
||
| Percentage |
integer |
Persentase rilis canary untuk versi kode. |
|
| CodeVersion |
string |
Nomor versi kode. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "",
"Strategy": "",
"DeploymentId": "",
"CodeVersions": [
{
"Percentage": 0,
"CodeVersion": ""
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | RoutineNotExist | The routine name does not exist. Check the routine name and try again. | |
| 400 | ParameterNotExist | The specified parameter does not exist. Check your configurations and try again. | |
| 400 | InternalOperationError | Failed to call the service. Try again later or contact technical support. | |
| 400 | DependedByOthers | Failed to call the service. Try again later or contact technical support. | |
| 400 | RoutineUserServiceStatusHalt | Failed to update the configurations because you have overdue payments. | |
| 400 | InvalidParameter | Parameter verification failed. Check your configurations and try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.