Scales out or in an application that is deployed in a Container Service for Kubernetes (ACK) cluster.
Debugging
Request headers
This operation uses only common request headers. For more information, see the topic about common request parameters.
Request syntax
PUT /pop/v5/k8s/acs/k8s_apps HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 23bf94d9-****-4994-****-616a827aa777 |
The ID of the application. You can call the ListApplication operation to query the application ID. |
Replicas | Integer | Query | Yes | 2 |
The expected number of instances for the application after the scaling operation. The minimum number is 0. |
Timeout | Integer | Query | No | 60 |
The timeout interval of the change process. Unit: seconds. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ChangeOrderId | String | 9d7232b2-****-****-b9d9-7e17695779ab |
The ID of the change process. You can call the GetChangeOrderInfo operation to query the progress of this scaling operation. |
Code | Integer | 200 |
The HTTP status code. |
Message | String | success |
The returned message that indicates whether the request is successful. |
RequestId | String | a5281053-08e4-47a5-b2ab-5c0323de7b5a |
The ID of the request. |
Examples
Sample requests
PUT /pop/v5/k8s/acs/k8s_apps HTTP/1.1
Common request headers
{
"AppId": "23bf94d9-****-4994-****-616a827aa777",
"Replicas": "2"
}
Sample success responses
XML
format
<RequestId>a5281053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>
<Message>success</Message>
<ChangeOrderId>9d7232b2-****-****-b9d9-7e17695779ab</ChangeOrderId>
<Code>200</Code>
JSON
format
{
"RequestId": "a5281053-08e4-47a5-b2ab-5c0323de7b5a",
"Message": "success",
"ChangeOrderId": "9d7232b2-****-****-b9d9-7e17695779ab",
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.