# Get the price for upgrading and downgrading DDoS protection - DescribeUpgradeHighProtectGameServicePrice

## Overview

Get the price for upgrading and downgrading DDoS protection






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `DescribeUpgradeHighProtectGameServicePrice`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.netlake.cn/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**|
| **DefenceType** | string | Defense Type, default is TypeFixed |No|
| **LineType** | string | Line |No|
| **DefenceDDosMaxFlowArr.N** | string | Basic DDoS Protection Value |No|
| **DefenceDDosBaseFlowArr.N** | string | DDoS Elastic Protection Value |No|
| **EngineRoom.N** | string | Representing data centers, for example, Dongguan Hangzhou |No|
| **AreaLine** | string | Region, East China and South China, EastChina and SouthChina |No|
| **SrcBandwidth** | int | Bandwidth, default 100M |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|
| **Price** | float | Price |**Yes**|
| **OriginalPrice** | float | Original Price |No|
| **FreeIPQuota** | int | Free IP Quota |No|
| **ChargeIPQuota** | int | Charged IP Quota |No|




## Example

### Request Example
    
```
https://api.netlake.cn/?Action=DescribeUpgradeHighProtectGameServicePrice
&DefenceType="TypeFixed"
&DefenceDDosBaseFlow=10
&DefenceDDosMaxFlow=20
&LineType="BGP"
&ResourceId="31db0df1-08c5-4547-8ccc-c2d99108403c"
&DefenceDDosMaxFlowArr="20,20"
&DefenceDDosBaseFlowArr="10,10"
&EngineRoom="Hangzhou"
&AreaLine="EastChina"
&SrcBandwidth=100
&ChargeIPQuota=2
```

### Response Example
    
```json
{
  "Action": "DescribeUpgradeHighProtectGameServicePriceResponse",
  "ChargeIPQuota": 3,
  "FreeIPQuota": 3,
  "OriginalPrice": 4.21538,
  "Price": 123,
  "RetCode": 0
}
```





