ScaleService
Scales a service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:ScaleService |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v2/services/{ClusterId}/{ServiceName}/scale HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region where the service is located. |
cn-shanghai |
| ServiceName |
string |
Yes |
The name of the service. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
{"Instance": 2, "InstancesToDelete": [ "foo-adsx-xxxx" ]} |
| Instance |
integer |
Yes |
The target instance count for scaling. |
2 |
| InstancesToDelete |
array |
No |
The list of instance names to prioritize for deletion during a scale-in operation. Note: This parameter takes effect only during scale-in. |
|
|
string |
No |
The instance name. |
foo-adsx-xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The operation result message. |
Service [foo] in region [cn-shanghai] is scaling |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Service [foo] in region [cn-shanghai] is scaling"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.