# GetNetworkLoadBalancerPrice - GetNetworkLoadBalancerPrice

## Overview

GetNetworkLoadBalancerPrice






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetNetworkLoadBalancerPrice`.                      | **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. See [Region and Zone List](/docs/api/summary/regionlist) |**Yes**|
| **ProjectId** | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the [GetProjectList API](/docs/api/summary/get_project_list) |No|
| **ChargeType** | string | Payment Mode<br />Limited enumeration values: "Year" / "Month"/ "Dynamic"<br />Default to get three types of prices |No|
| **PayMode** | string | Load Balancing Instance Billing Method<br />Limited enumeration values: "Instance" / "LCU"<br />Default value: "Instance". |No|
| **Quantity** | int | Purchase Duration<br />No need for this parameter when purchasing by the hour (Dynamic). When paying monthly, this parameter is set to 0, which means purchase until the end of the month.<br />Default is 1. |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|
| **Prices** | array[[*PriceDetail*](#pricedetail)] |  |**Yes**|

#### Data Model


#### PriceDetail

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ChargeType** | string | Payment Method for Load Balancing |No|
| **Price** | float | Actual price for purchasing Load Balancing, unit "Yuan"  |No|
| **CustomPrice** | float | User discounted price, unit "yuan". CustomPrice=OriginalPrice*User Discount |No|
| **OriginalPrice** | float | Original price of purchasing Load Balancer, unit "Yuan"  |No|
| **PurchaseValue** | int | Resource validity period, represented by Unix Timestamp |No|

## Example

### Request Example
    
```
https://api.genesissai.com/?Action=GetNetworkLoadBalancerPrice
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=nGnZnGNf
&ChargeType=FftdAOgA
&PayMode=WVsBoyws
&Quantity=PNtsJWRQ
```

### Response Example
    
```json
{
  "Action": "GetNetworkLoadBalancerPriceResponse",
  "Prices": [
    {
      "ChargeType": "YMQVkefZ",
      "CustomPrice": 2.94455,
      "OriginalPrice": 3.55214,
      "Price": 4.19143,
      "PurchaseValue": 6
    }
  ],
  "RetCode": 0
}
```





