Menskala layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ScaleService |
update |
*全部资源
|
None | None |
Sintaks permintaan
PUT /api/v2/services/{ClusterId}/{ServiceName}/scale 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. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
{"Instance": 2, "InstancesToDelete": [ "foo-adsx-xxxx" ]} |
| Instance |
integer |
Yes |
The target number of instances. |
2 |
| InstancesToDelete |
array |
No |
A list of instance names to prioritize for removal during a scale-in operation. |
|
|
string |
No |
The instance name. |
foo-adsx-xxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data structure of the response. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
A message indicating the result of the operation. |
Service [foo] in region [cn-shanghai] is scaling |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Message": "Service [foo] in region [cn-shanghai] is scaling"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.