# EnableUK8SAutoscaler - EnableUK8SAutoscaler

## Overview

Enable or disable the autoscaler for a UK8S cluster.






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `EnableUK8SAutoscaler`.                      | **Yes** |
| **PublicKey**  | string  | AccessKey ID, obtained from [Console](https://console.sigcalcloud.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 |
|:---|:---|:---|:---|
| **Region** | string | Region. See [Regions and Availability Zones](/docs/api/summary/regionlist). |**Yes**|
| **ProjectId** | string | Project ID. If omitted, the default project is used. Required for sub-accounts. See [GetProjectList](/docs/api/summary/get_project_list). |No|
| **ClusterId** | string | Cluster ID. |**Yes**|
| **Enabled** | int | Whether to enable the autoscaler: 1 to enable; 0 to disable. |**Yes**|

### 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.sigcalcloud.com/?Action=EnableUK8SAutoscaler
&Region=cn-zj
&ProjectId=fWnQXrMF
&ClusterId=bxnwiXkX
&Enabled=true
```

### Response Example
    
```json
{
  "Action": "EnableUK8SAutoscalerResponse",
  "RetCode": 0
}
```





