Updates the configuration of an application in a Container Service for Kubernetes (ACK) or Serverless Kubernetes cluster.

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 headers

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

Request syntax

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

Request parameters

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

The ID of the application. You can call the ListApplication operation to query the application ID. For more information, see ListApplication.

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

The ID of the cluster. You can call the ListCluster operation to query the cluster ID. For more information, see ListCluster.

CpuLimit String Yes 1

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

MemoryLimit String Yes 4

The maximum amount of memory allowed for each application instance when the application is running. Unit: MB.

McpuLimit String No 1

The maximum number of CPU cores allowed. Unit: cores. To impose no limit, set this parameter to 0.

CpuRequest String No 1

The CPU quota requested for each application instance when the application is running. We recommend that you set this parameter. Unit: cores. To impose no limit, set this parameter to 0.

Note You must set this parameter together with the CpuLimit parameter. Make sure that the value of CpuRequest is at most the value of CpuLimit.
McpuRequest String No 1000

The minimum number of CPU cores required. Unit: cores. To impose no limit, set this parameter to 0.

Note You must set this parameter together with the CpuLimit parameter. Make sure that the value of McpuRequest is at most the value of CpuLimit.
MemoryRequest String No 400

The memory quota requested for each application instance when the application is running. We recommend that you set this parameter. Unit: MB. If you do not want to apply for a memory quota, set this parameter to 0.

Note You must set this parameter together with the MemoryLimit parameter. Make sure that the value of MemoryRequest is at most the value of MemoryLimit.
Timeout Integer No 60

The timeout interval of the change process. Unit: seconds.

Response parameters

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

The ID of the change process.

Code Integer 200

The HTTP status code.

Message String success

The returned message that indicates whether the request is successful.

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": "1",
"MemoryLimit": "400"
}

Sample success responses

XML format

<Message>success</Message>
<ChangeOrderId>8806d1c6-87ab-48eb-9373-6bdef3007466</ChangeOrderId>
<Code>200</Code>

JSON format

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

Error codes

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