参考本示例查询预付费计费方式的云防火墙的价格。
询价说明
获取预付费云防火墙CFW的价格,您需要完成以下操作:
- 调用QueryProductList获取产品code,云防火墙CFW的产品code为
vipcloudfw
。 - 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCode和SubscriptionType参数。预付费产品的SubscriptionType取值为Subscription。
下表列举了获取预付费云防火墙CFW价格需提供的参数。
返回参数 取值范围 OrderType 订单类型,取值: - NewOrder:新购。
- Renewal:续费。
- Upgrade:升级。
Region 地域信息。 ModuleList.1.ModuleCode 带宽:BandWidth。 ModuleList.1.Config 带宽取值: - 10~500,默认5:高级版。
- 50~1000,默认50:企业版。
- 200~2000,默认200:旗舰版。
ModuleList.2.ModuleCode 当前版本:Spec。 ModuleList.2.Config 当前版本取值: - 2:高级版。
- 3:企业版。
- 4:旗舰版。
ModuleList.3.ModuleCode 资产数:InstanceCount。 ModuleList.3.Config 资产数取值: - 50~1000:企业版。
- 200~2000:旗舰版。
ModuleList.4.ModuleCode 日志分析:cfw_log ModuleList.4.Config 日志分析取值: - false:否。
- true:是。
ModuleList.5.ModuleCode 日志存储容量:cfw_log_storage。 ModuleList.5.Config 日志存储容量取值:1000~100000,只能是1000的证书倍。默认值:1000。 - 调用GetSubscriptionPrice接口获取预付费云防火墙CFW的价格。
请求示例
CFW 高级版:
https://business.aliyuncs.com/?Action=GetSubscriptionPrice
&ProductCode=vipcloudfw
&ProductType=vipcloudfw
&SubscriptionType=Subscription
&OrderType=NewOrder
&ModuleList.1.ModuleCode=BandWidth
&ModuleList.1.Config=BandWidth:10
&ModuleList.2.ModuleCode=Spec
&ModuleList.2.Config=Spec:2
&ModuleList.3.Config=cfw_log:true
&ModuleList.3.ModuleCode=cfw_log
&ModuleList.4.Config=cfw_log_storage:1000
&ModuleList.4.ModuleCode=cfw_log_storage
&ServicePeriodQuantity=6
&ServicePeriodUnit=Month
&Quantity=1
&公共参数
CFW 企业版:
https://business.aliyuncs.com/?Action=GetSubscriptionPrice
&ProductCode=vipcloudfw
&ProductType=vipcloudfw
&SubscriptionType=Subscription
&OrderType=NewOrder
&ModuleList.1.ModuleCode=BandWidth
&ModuleList.1.Config=BandWidth:50
&ModuleList.2.ModuleCode=Spec
&ModuleList.2.Config=Spec:3
&ModuleList.3.ModuleCode=InstanceCount
&ModuleList.3.Config=InstanceCount:50
&ModuleList.4.Config=cfw_log:true
&ModuleList.4.ModuleCode=cfw_log
&ModuleList.5.Config=cfw_log_storage:1000
&ModuleList.5.ModuleCode=cfw_log_storage
&ServicePeriodQuantity=6
&ServicePeriodUnit=Month
&Quantity=1
&公共参数
CFW 旗舰版:
https://business.aliyuncs.com/?Action=GetSubscriptionPrice
&ProductCode=vipcloudfw
&ProductType=vipcloudfw
&SubscriptionType=Subscription
&OrderType=NewOrder
&ModuleList.1.ModuleCode=BandWidth
&ModuleList.1.Config=BandWidth:200
&ModuleList.2.ModuleCode=Spec
&ModuleList.2.Config=Spec:4
&ModuleList.3.ModuleCode=InstanceCount
&ModuleList.3.Config=InstanceCount:200
&ModuleList.4.Config=cfw_log:true
&ModuleList.4.ModuleCode=cfw_log
&ModuleList.5.Config=cfw_log_storage:1000
&ModuleList.5.ModuleCode=cfw_log_storage
&ServicePeriodQuantity=6
&ServicePeriodUnit=Month
&Quantity=1
&公共参数