Mengalihkan status traffic atau bobot layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ReleaseService |
update |
*Service
|
None | None |
Sintaks permintaan
PUT /api/v2/services/{ClusterId}/{ServiceName}/release HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah tempat layanan dideploy. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. Untuk informasi selengkapnya tentang cara menanyakan nama layanan, lihat ListServices. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| Weight |
integer |
No |
Bobot layanan. Nilai yang valid: [-1, 1000]. |
100 |
| TrafficState |
string |
No |
Status traffic. Nilai yang valid:
Valid values:
|
grouping |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
40325405-579C-4D82**** |
| Message |
string |
Pesan yang dikembalikan. |
Releasing service [foo] in region [cn-shanghai] with weight [40], service status: [Running] |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Message": "Releasing service [foo] in region [cn-shanghai] with weight [40], service status: [Running]"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.