Updates the configuration of an application in a Container Service for Kubernetes (ACK) or Serverless Kubernetes cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ConfigApplication |
*Application
|
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.