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 ID of the region where the service is deployed. |
cn-shanghai |
| ServiceName |
string |
Yes |
The service name. |
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 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 |
Response elements
|
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 |
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.