Rilis versi kode fungsi secara proporsional ke lingkungan yang ditentukan.
Deskripsi operasi
Permintaan Penjelasan
Saat membuat penerapan versi kode Routine, nama lingkungan
Envhanya mendukung nilaistaging(Lingkungan pengujian) atauproduction(lingkungan produksi).Parameter
CodeVersionsmendukung maksimal dua versi untuk rilis bertahap, dengan total persentase dari kedua versi tersebut harus berjumlah 100%.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama fungsi. |
test |
| Env |
string |
Yes |
Nama lingkungan. Hanya mendukung Lingkungan pengujian |
staging |
| Strategy |
string |
Yes |
Kebijakan penerapan. Nilai yang valid: percentage. |
percentage |
| CodeVersions |
array<object> |
Yes |
Daftar konfigurasi nomor versi rilis bertahap. Mendukung maksimal dua versi, dan jumlah total proporsinya harus sama dengan 100. |
|
|
object |
Yes |
Nomor versi rilis bertahap. |
||
| Percentage |
integer |
Yes |
Rasio rilis bertahap untuk versi kode tersebut. Nilai yang valid: 1 hingga 100. |
100 |
| CodeVersion |
string |
Yes |
Versi kode. |
1723599747213377175 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395 |
| Strategy |
string |
Kebijakan rilis bertahap. Nilai konstan berupa string "percentage". |
percentage |
| DeploymentId |
string |
ID catatan penerapan. |
234 |
| CodeVersions |
array<object> |
Daftar konfigurasi nomor versi rilis bertahap. |
|
|
object |
Konfigurasi nomor versi rilis bertahap. |
||
| Percentage |
integer |
Rasio rilis bertahap. |
100 |
| CodeVersion |
string |
Versi kode. |
1723599747213377175 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EDBD3EB3-97DA-5465-AEF5-8DCA5DC5E395",
"Strategy": "percentage",
"DeploymentId": "234",
"CodeVersions": [
{
"Percentage": 100,
"CodeVersion": "1723599747213377175"
}
]
}
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.