Updates a specific component within a node pool, such as the kubelet.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cs:UpdateNodePoolComponent | update | *Cluster acs:cs:{#regionId}:{#accountId}:cluster/{#ClusterId} |
| none |
Request syntax
PUT /clusters/{clusterId}/nodepools/{nodepoolId}/component HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| clusterId | string | No | The ID of the cluster. | c82e6987e2961451182edacd74faf**** |
| nodepoolId | string | No | The ID of the node pool. | np7c4fa4a5f1ce412b84967089**** |
| body | object | No | The request body parameters. | |
| name | string | No | The name of the node component. | kubelet |
| version | string | No | The version of the node component to be updated to. | 1.28.9-aliyun.1 |
| config | object | No | The configuration details for the component update. | |
| customConfig | object | No | Custom configuration parameters for the component. | |
| string | No | A specific configuration key. | cpuCFSQuota | |
| disableRolling | boolean | No | Specifies whether to disable rolling updates. Default: false. If set to false, nodes will be rolled automatically to apply the new configuration. | |
| nodeNames | array | No | A list of specific nodes to be rolled. If not specified, all nodes in the node pool will be updated. | |
| string | No | The name of a specific node. | cn-hangzhou.10.91.xx.xx | |
| rollingPolicy | object | No | The rolling update configuration. | |
| maxParallelism | long | No | The maximum number of nodes that can be updated concurrently. Default: 1. | 1 |
| pausePolicy | string | No | The automatic pause strategy during the update process. Valid values: NotPause, FirstBatchPause, EveryBatchPause. | NotPause |
| batchInterval | long | No | The time interval between update batches, in seconds. | 0 |
Response parameters
Examples
Sample success responses
JSONformat
{
"requestId": "49511F2D-D56A-5C24-B9AE-C8491E09B***",
"taskId": "T-67d7ec016ce37c0106000***",
"clusterId": "c82e6987e2961451182edacd74faf****"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-12-29 | Add Operation | View Change Details |
