Memperbarui versi layanan atau mengembalikan layanan ke versi tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateServiceVersion |
update |
*Service
|
None | None |
Sintaks permintaan
PUT /api/v2/services/{ClusterId}/{ServiceName}/version HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah tempat layanan diterapkan. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. Untuk informasi selengkapnya tentang cara mengkueri nama layanan, lihat ListServices. |
echo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| Version |
integer |
Yes |
The destination version of the service. The value must be of the INT type. The value must be greater than 0 and smaller than the current version of the service. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Service [foo] in region [cn-shanghai] is starting |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Message": "Service [foo] in region [cn-shanghai] is starting"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.