Docs
api
Network Load Balance(NLB)
GetNetworkLoadBalancerPrice

GetNetworkLoadBalancerPrice - GetNetworkLoadBalancerPrice

Overview

GetNetworkLoadBalancerPrice

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetNetworkLoadBalancerPrice.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Zone ListYes
ProjectIdstringProject ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList APINo
ChargeTypestringPayment Mode
Limited enumeration values: “Year” / “Month”/ “Dynamic”
Default to get three types of prices
No
PayModestringLoad Balancing Instance Billing Method
Limited enumeration values: “Instance” / “LCU”
Default value: “Instance”.
No
QuantityintPurchase Duration
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.
Default is 1.
No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
Pricesarray[PriceDetail]Yes

Data Model

PriceDetail

Field NameTypeDescription InformationRequired
ChargeTypestringPayment Method for Load BalancingNo
PricefloatActual price for purchasing Load Balancing, unit “Yuan”No
CustomPricefloatUser discounted price, unit “yuan”. CustomPrice=OriginalPrice*User DiscountNo
OriginalPricefloatOriginal price of purchasing Load Balancer, unit “Yuan”No
PurchaseValueintResource validity period, represented by Unix TimestampNo

Example

Request Example

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

Response Example

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