# 升降级高防服务 - UpgradeHighProtectGameService

## 简介

升降级高防服务





## 定义

### 公共参数

| 参数名 | 类型 | 描述信息 | 必填 |
|:---|:---|:---|:---|
| **Action**     | string  | 对应的 API 指令名称，当前 API 为 `UpgradeHighProtectGameService`                        | **Yes** |
| **PublicKey**  | string  | 用户公钥，可从 [控制台](https://console.zosoc.com/uaccount/api_manage) 获取                                             | **Yes** |
| **Signature**  | string  | 根据公钥及 API 指令生成的用户签名，参见 [签名算法](/docs/api/summary/signature.md)  | **Yes** |

### 请求参数

| 参数名 | 类型 | 描述信息 | 必填 |
|:---|:---|:---|:---|
| **ResourceId** | string | 资源ID |**Yes**|
| **LineType** | string | 线路类型 |**Yes**|
| **AreaLine** | string | 区域，华东和华南，EastChina 和SouthChina |**Yes**|
| **SrcBandwidth** | int | 业务带宽 |**Yes**|
| **EngineRoom.N** | string | 机房 |**Yes**|
| **DefenceType** | string | 防御类型，默认为TypeFixed |No|
| **DefenceDDosMaxFlowArr.N** | string | DDoS弹性防御值 |No|
| **DefenceDDosBaseFlowArr.N** | string | DDoS基础防御值 |No|
| **CouponId** | string | 代金券ID |No|

### 响应字段

| 字段名 | 类型 | 描述信息 | 必填 |
|:---|:---|:---|:---|
| **RetCode** | int | 返回状态码，为 0 则为成功返回，非 0 为失败 |**Yes**|
| **Action** | string | 操作指令名称 |**Yes**|
| **Message** | string | 返回错误消息，当 `RetCode` 非 0 时提供详细的描述信息 |No|
| **ResourceInfo** | [*ResourceInfo*](#ResourceInfo) | 返回资源信息 |**Yes**|

#### 数据模型


#### ResourceInfo

| 字段名 | 类型 | 描述信息 | 必填 |
|:---|:---|:---|:---|
| **ResourceId** | string | 资源id |No|

## 示例

### 请求示例
    
```
https://api.zosoc.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
```

### 响应示例
    
```json
{
  "Action": "UpgradeHighProtectGameServiceResponse",
  "ResourceInfo": "",
  "RetCode": 0
}
```





