# Update UK8S Auto Scaling Group V2 - UpdateUK8SAutoScalingGroupV2

## Overview

Update the name, minimum and maximum node counts, and priority of a UK8S auto scaling group. Node specifications must be changed through the associated node pool.






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `UpdateUK8SAutoScalingGroupV2`.                      | **Yes** |
| **PublicKey**  | string  | AccessKey ID, obtained from [Console](https://console.ziguang.unicloud.com/uaccount/api_manage)                                              | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Zone** | string | Optional availability zone. This API updates configuration by cluster and auto scaling group IDs. |No|
| **ProjectId** | string | Project ID. |No|
| **Region** | string | Region. |**Yes**|
| **ClusterId** | string | UK8S cluster ID. |**Yes**|
| **Id** | string | Auto scaling group ID. |**Yes**|
| **Name** | string | Auto scaling group name. |**Yes**|
| **Min** | int | Minimum node count, from 0 to 100. |**Yes**|
| **Max** | int | Maximum node count, from 1 to 100. |**Yes**|
| **Priority** | int | Auto scaling group priority from 1 to 100; larger values take precedence. Omit or set to 0 to keep the existing priority. |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|




## Example

### Request Example
    
```
https://api.ziguang.unicloud.com/?Action=UpdateUK8SAutoScalingGroupV2
&Zone=PWjhKooi
&ProjectId=RMTtolvk
&Region=CbyaHHww
&ClusterId=rgYejpNn
&Min=2
&Max=4
&Id=gfdWtBHO
&Name=mRWzEyJl
&Priority=2
```

### Response Example
    
```json
{
  "Action": "UpdateUK8SAutoScalingGroupV2Response",
  "Id": "qVbRduxj",
  "Message": "frGgkagO",
  "RetCode": 0
}
```





