You can call this operation to scale out or in an application in a Container Service for Kubernetes cluster.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
PUT /pop/v5/k8s/acs/k8s_apps HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
AppId | String | Yes | 23bf94d9-****-4994-****-616a827aa777 |
The ID of the application that you want to scale out or in. You can call the ListApplication operation to query the application ID. |
Replicas | Integer | Yes | 2 |
The number of application instances to be added or retained. Minimum value: 0 |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | a5281053-08e4-47a5-b2ab-5c0323de7b5a |
The ID of the request. |
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
ChangeOrderId | String | 9d7232b2-****-****-b9d9-7e17695779ab |
The ID of the change process for this operation. You can call the GetChangeOrderInfo operation to query the progress of this operation. |
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
JSON
format
{
"Message": "success",
"ChangeOrderId": "9d7232b2-0924-4388-b9d9-7e17695779ab",
"Code": 200
}
XML
format
<Message>success</Message>
<ChangeOrderId>9d7232b2-0924-4388-b9d9-7e17695779ab</ChangeOrderId>
<Code>200</Code>
Error codes
For a list of error codes, visit the API Error Center.