Scales out or scales down application instances in a Container Service for Kubernetes (K8s) cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageApplication |
none |
*Application
|
None | None |
Request syntax
PUT /pop/v5/k8s/acs/k8s_apps HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the application. Call the ListApplication operation to obtain the application ID. |
23bf94d9-****-4994-****-616a827aa777 |
| Replicas |
integer |
Yes |
The target number of application instances. The minimum value is 0. |
2 |
| Timeout |
integer |
No |
The timeout period for the change process, in seconds. |
60 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response. |
||
| ChangeOrderId |
string |
The ID of the change process. Call the GetChangeOrderInfo operation to query the progress of the scaling task. |
9d7232b2-****-****-b9d9-7e17695779ab |
| Code |
integer |
The status code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The unique ID of the request. |
a5281053-08e4-47a5-b2ab-5c0323de7b5a |
Examples
Success response
JSON format
{
"ChangeOrderId": "9d7232b2-****-****-b9d9-7e17695779ab",
"Code": 200,
"Message": "success",
"RequestId": "a5281053-08e4-47a5-b2ab-5c0323de7b5a"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.