# Upgrade or Downgrade DDoS Protection Service - UpgradeHighProtectGameService

## Overview

Upgrade or Downgrade DDoS Protection Service






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `UpgradeHighProtectGameService`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be 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 |
|:---|:---|:---|:---|
| **ResourceId** | string | Resource ID |**Yes**|
| **LineType** | string | Line Type |**Yes**|
| **AreaLine** | string | Region, East China and South China, EastChina and SouthChina |**Yes**|
| **SrcBandwidth** | int | Business Bandwidth |**Yes**|
| **EngineRoom.N** | string | Data Center |**Yes**|
| **DefenceType** | string | Defense Type, default is TypeFixed |No|
| **DefenceDDosMaxFlowArr.N** | string | UDDoS |No|
| **DefenceDDosBaseFlowArr.N** | string | Basic DDoS Defense Value |No|
| **CouponId** | string | Coupon ID |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|
| **ResourceInfo** | [*ResourceInfo*](#resourceinfo) | Return Resource Information |**Yes**|

#### Data Model


#### ResourceInfo

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ResourceId** | string | Resource ID |No|

## Example

### Request Example
    
```
https://api.sigcalcloud.com/?Action=UpgradeHighProtectGameService
&ResourceId="3642df43-779f-4115-b286-33ed12e560ce"
&ChargeType="Month"
&DefenceType="TypeFixed"
&DefenceDDosBaseFlow=10
&DefenceDDosMaxFlow=20
&Quantity=2
&CouponId="QLFwDUql"
&LineType="BGP"
&ChangePayMode="BuyGame"
&DefenceDDosMaxFlowArr="10,10"
&DefenceDDosBaseFlowArr="10,10"
&EngineRoom="Hangzhou"
&AreaLine="EastChina"
&SrcBandwidth=100
&ChargeIPQuota=2
&EngineRoom.1=deNpzDwU
&DefenceDDosMaxFlowArr.1=JEwuUuDO
&DefenceDDosBaseFlowArr.1=zExZPPhO
```

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





