All Products
Search
Document Center

Enterprise Distributed Application Service:UpdateK8sApplicationConfig

Last Updated:Dec 22, 2025

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

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

edas:ConfigApplication

*Application

acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}

None None

Request syntax

PUT /pop/v5/k8s/acs/k8s_app_configuration HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

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

23bf94d9-****-4994-9917-616a827aa777

ClusterId

string

No

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

9c28bbb9-****-44b3-b953-54ef8a2d0be2

CpuLimit

string

No

The maximum number of CPU cores allowed for each application instance when the application is running. The value 0 indicates that no limit is set on CPU cores.

1

MemoryLimit

string

No

The maximum size of memory allowed for each application instance when the application is running. Unit: MB. The value 0 indicates that no limit is set on the memory size.

4

McpuLimit

string

No

The maximum number of CPU cores allowed. The value 0 indicates that no limit is set on CPU cores.

1

CpuRequest

string

No

The number of CPU cores requested for each application instance when the application is running. Unit: cores. We recommend that you set this parameter. The value 0 indicates that no limit is set on CPU cores.

Note

You must set this parameter together with the CpuLimit parameter. Make sure that the value of this parameter does not exceed that of the CpuLimit parameter.

1

McpuRequest

string

No

The minimum number of CPU cores required. Unit: cores. The value 0 indicates that no limit is set on CPU cores.

Note

You must set this parameter together with the CpuLimit parameter. Make sure that the value of this parameter does not exceed that of the CpuLimit parameter.

1000

MemoryRequest

string

No

The size of memory requested for each application instance when the application is running. Unit: MB. We recommend that you set this parameter. 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 this parameter does not exceed that of the MemoryLimit parameter.

400

Timeout

integer

No

The timeout period of the change process. Valid values: 1 to 1800. Default value: 600. Unit: seconds.

60

EphemeralStorageRequest

string

No

The minimum size of space required by ephemeral storage. Unit: GB. The value 0 indicates that no limit is set on the ephemeral storage space.

Note

You must set this parameter together with the EphemeralStorageLimit parameter. Make sure that the value of this parameter does not exceed that of the EphemeralStorageLimit parameter.

2

EphemeralStorageLimit

string

No

The maximum size of space required by ephemeral storage. Unit: GB. The value 0 indicates that no limit is set on the ephemeral storage space.

4

Response elements

Element

Type

Description

Example

object

ChangeOrderId

string

The ID of the change process.

8806d1c6-****-48eb-9373-6bdef3007466

Code

integer

The HTTP status code that is returned.

200

Message

string

The additional information that is returned.

success

RequestId

string

The ID of the request.

4823-bhjf-23u4-****

Examples

Success response

JSON format

{
  "ChangeOrderId": "8806d1c6-****-48eb-9373-6bdef3007466",
  "Code": 200,
  "Message": "success",
  "RequestId": "4823-bhjf-23u4-****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 Edas.errorcode.K8SAppConfiguration.UpdateFail Failed to set app configuration.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.