You can call this operation to scale out or in an application in a Container Service for Kubernetes cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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.


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


Error codes

For a list of error codes, visit the API Error Center.