Skip to Content
网路负载均衡 NLB获取负载均衡价格 - GetNetworkLoadBalancerPrice

获取负载均衡价格 - GetNetworkLoadBalancerPrice

简介

获取负载均衡价格

定义

公共参数

参数名类型描述信息必填
Actionstring对应的 API 指令名称,当前 API 为 GetNetworkLoadBalancerPriceYes
PublicKeystring用户公钥,可从 控制台 获取Yes
Signaturestring根据公钥及 API 指令生成的用户签名,参见 签名算法Yes

请求参数

参数名类型描述信息必填
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口No
ChargeTypestring付费模式
限定枚举值:“Year” / “Month”/ “Dynamic”
默认获取三种价格
No
PayModestring负载均衡实例计费方式
限定枚举值:“Instance” / “LCU”
默认值:“Instance”
No
Quantityint购买时长
按小时购买(Dynamic)时无需此参数。月付时,此参数传 0,代表了购买至月末
默认 1
No

响应字段

字段名类型描述信息必填
RetCodeint返回状态码,为 0 则为成功返回,非 0 为失败Yes
Actionstring操作指令名称Yes
Messagestring返回错误消息,当 RetCode 非 0 时提供详细的描述信息No
Pricesarray[PriceDetail]Yes

数据模型

PriceDetail

字段名类型描述信息必填
ChargeTypestring负载均衡付费方式No
Pricefloat购买负载均衡的实际价格,单位“元”No
CustomPricefloat用户折后价,单位“元”。CustomPrice=OriginalPrice*用户折扣No
OriginalPricefloat购买负载均衡的原价,单位“元”No
PurchaseValueint资源有效期,以Unix Timestamp表示No

示例

请求示例

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

响应示例

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