Configure the container service Kubernetes application.

Debugging

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 header

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

PUT /pop/v5/k8s/acs/k8s_app_configuration HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
AppId String Yes 23 bf94d9-****-4994-9917-616a827aa777

The ID of workspace to which the node instance belongs.

ClusterId String Yes 9 c28bbb9-****-44b3-b953-54ef8a2d0be2

The ID of the cluster that you want to scale out.

CpuLimit String Yes 400

The maximum number of CPUs allowed for each application instance when the application is running. Unit: cores.

MemoryLimit String Yes 400

The CPU limit of the application instance when the application is running. Unit: MB.

Response parameters

Parameter Type Example Description
ChangeOrderId STRING 8806 d1c6****-48 eb-9373-6bdef3007466

The ID of the change process.

Code INTEGER 200

The code.

Message STRING Success

The message.

RequestId String 4823-bhjf-23u4-eiufh

The ID of the request.

Examples

Sample requests

PUT /pop/v5/k8s/acs/k8s_app_configuration HTTP/1.1
Common request header
{
  "AppId": "23bf94d9-****-4994-9917-616a827aa777"
  "ClusterId": "9c28bbb9-****-44b3-b953-54ef8a2d0be2"
  "CpuLimit": "400"
  "MemoryLimit": "400"
}

Sample success responses

XML format

<Message>success</Message>
<ChangeOrderId>8806d1c6-87ab-****-6bdef3007466</ChangeOrderId>
<Code>200</Code>

JSON format

{
    "Message": "success",
    "ChangeOrderId": "8806d1c6-87ab-****-6bdef3007466",
    "Code": 200
}

Error codes

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