Memperbarui konfigurasi vSwitch dari sebuah aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:UpdateApplicationVswitches |
update |
*全部资源
|
None | None |
Sintaks permintaan
PUT /pop/v1/sam/app/updateAppVswitches HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
ID aplikasi. |
0099b7be-5f5b-4512-a7fc-56049ef1**** |
| VSwitchId |
string |
Yes |
ID vSwitch. |
vsw-2ze559r1z1bpwqxwp**** |
| Deploy |
boolean |
No |
Menentukan apakah akan men-deploy aplikasi segera. Nilai yang valid:
|
true |
| MinReadyInstances |
integer |
No |
Jumlah minimum instans yang siap. |
|
| MinReadyInstanceRatio |
integer |
No |
Persentase minimum instans yang siap. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
Pesan yang dikembalikan. Nilai yang valid:
|
success |
| TraceId |
string |
ID pelacakan. Anda dapat menggunakan ID ini untuk melacak permintaan. |
0a98a02315955564772843261e**** |
| ErrorCode |
string |
Kode kesalahan.
|
|
| Code |
string |
Kode status HTTP. Nilai yang valid:
|
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"ErrorCode": "",
"Code": "200",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidApplication.NotFound | The current application does not exist. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.