# Create UWAN Vrouter - CreatePOPGW

## Overview

Create UWAN Vrouter






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `CreatePOPGW`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.genesissai.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 parameter, which is used to identify the region to which the data you want to work with belongs.Please refer to the [GetProjectList API](/docs/api/summary/get_project_list) |**Yes**|
| **Zone** | string | Availability Zones. See [List of Availability Zones](/docs/api/summary/regionlist) |No|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |No|
| **BWConf.Name** | string | The Bandwidth name |**Yes**|
| **BWConf.PayMode** | string | Bandwidth billing methods, with possible values:<br />- fixed-bw: Fixed bandwidth billing<br />- traffic: Traffic-based billing |**Yes**|
| **BWConf.BwMax** | float | UWAN gateway bandwidth specification. Values ​​range from 1 to 100. Unit: Mbps. |**Yes**|
| **BWConf.ChargeType** | string | Payment methods, enumerated values:<br /><br />- Month: Monthly payment;<br /><br />- Year: Yearly payment;<br /><br />- Postpaid: Postpaid (only supports  BWConf.PayMode =  traffic) |**Yes**|
| **BWConf.Quantity** | float | The bandwidth purchase duration defaults to 0, meaning it's valid until the end of the month. |No|
| **BWConf.ProductId** | int | The production ID |No|
| **BWConf.CouponId** | string | The Coupon ID |No|
| **BWConf.Remark** | string | The Bandwidth remarks |No|
| **BWConf.BwType** | string | Bandwidth type, defaults to an empty string. |No|
| **Name** | string | The UWAN resource name |**Yes**|
| **Quantity** | int | The purchase duration for the UWAN gateway defaults to 0, meaning it's valid until the end of the month. (Keep this consistent with BWConf.Quantity.) |**Yes**|
| **Remark** | string | The UWAN remarks |No|
| **ChargeType** | string | Payment method, enumerated values ​​are:<br /><br />- Year: Annual payment;<br /><br />- Month: Monthly payment;<br /><br />(Monthly payment is optional, defaults to 0; annual payment is required.) |No|
| **Type** | string | Network access type: Only "IPSec" is supported. |No|
| **CouponId** | string | The Coupon ID, not used by default. |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|
| **PopGwId** | string | The UWAN resource ID |**Yes**|




## Example

### Request Example
    
```
https://api.genesissai.com/?Action=CreatePOPGW
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=ooBHFwrY
&BWConf=LVGDeccZ
&Name=nzIGigtj
&Remark=YZbsMKff
&ChargeType=ASVnzGkn
&Quantity=2
&CouponId=lrMZyetr
&Spesc=gMQxswqj
&ChargeType=fpbFMLzs
&Quantity=2
&CouponId=GaqiZhYK
&Specs=TIOEalDb
&ChargeType=DqBbJGMQ
&Quantity=7
&CouponId=MdAnpCwk
&Type=GDyoAUuH
&BWConf.PayMode=RDRcGbJl
&BWConf.BwMax=3
&BWConf.ChargeType=Year
&BWConf.Quantity=3.64596
&BWConf.ProductId=1
&BWConf.CouponId=BgFFNxER
&BWConf.Remark=kMGBuVQi
&BWConf.BwType=atWrGOQe
```

### Response Example
    
```json
{
  "Action": "CreatePOPGWResponse",
  "Message": "qtfEvfGP",
  "PopGwId": "kamFBVCe",
  "RetCode": 0
}
```





